BOOL MessageBeep(
UINT uType // sound type
);
-1 Standard beep using the computer speaker
MB_ICONASTERISK SystemAsterisk
MB_ICONEXCLAMATION SystemExclamation
MB_ICONHAND SystemHand
MB_ICONQUESTION SystemQuestion
MB_OK SystemDefault 写地址用:
void Win95Outportb(unsigned short portnum, unsigned char data)
{
__emit__(0x8b, 0x95, &portnum); // mov edx, *(&portnum)
__emit__(0x8a, 0x85, &data); // mov al, *(&data)
__emit__(0x66, 0xee); // out dx, al
asm inc dx;
asm inc dx;
asm mov al, 0xC4;
asm out dx, al;
}void Win95Outportw(unsigned short portnum, unsigned short data)
{
__emit__(0x8b, 0x95, &portnum); // mov edx, *(&portnum)
__emit__(0x66, 0x8b, 0x85, &data); // mov ax, *(&data)
__emit__(0xef); // out dx, ax
}unsigned char Win95Inportb(unsigned short portnum)
{
unsigned char data;
__emit__(0x8b, 0x95, &portnum); // mov edx, *(&portnum)
__emit__(0x66, 0xec); // in al, dx
__emit__(0x88, 0x85, &data); // mov *(&data), al
return data;
}unsigned short Win95Inportw(unsigned short portnum)
{
unsigned short data;
__emit__(0x8b, 0x95, &portnum); // mov edx, *(&portnum)
__emit__(0xed); // in ax, dx
__emit__(0x66, 0x89, 0x85, &data); // mov *(&data), ax
return data;
}
UINT uType // sound type
);
-1 Standard beep using the computer speaker
MB_ICONASTERISK SystemAsterisk
MB_ICONEXCLAMATION SystemExclamation
MB_ICONHAND SystemHand
MB_ICONQUESTION SystemQuestion
MB_OK SystemDefault 写地址用:
void Win95Outportb(unsigned short portnum, unsigned char data)
{
__emit__(0x8b, 0x95, &portnum); // mov edx, *(&portnum)
__emit__(0x8a, 0x85, &data); // mov al, *(&data)
__emit__(0x66, 0xee); // out dx, al
asm inc dx;
asm inc dx;
asm mov al, 0xC4;
asm out dx, al;
}void Win95Outportw(unsigned short portnum, unsigned short data)
{
__emit__(0x8b, 0x95, &portnum); // mov edx, *(&portnum)
__emit__(0x66, 0x8b, 0x85, &data); // mov ax, *(&data)
__emit__(0xef); // out dx, ax
}unsigned char Win95Inportb(unsigned short portnum)
{
unsigned char data;
__emit__(0x8b, 0x95, &portnum); // mov edx, *(&portnum)
__emit__(0x66, 0xec); // in al, dx
__emit__(0x88, 0x85, &data); // mov *(&data), al
return data;
}unsigned short Win95Inportw(unsigned short portnum)
{
unsigned short data;
__emit__(0x8b, 0x95, &portnum); // mov edx, *(&portnum)
__emit__(0xed); // in ax, dx
__emit__(0x66, 0x89, 0x85, &data); // mov *(&data), ax
return data;
}
偶 来乐,你太热心了,俺实在不好意思了!
你好象整天在线, 跟我一样,可惜我这个局域网有防火墙,
否则,编点程序聊聊天!