这个函数用来发出系统声音。
函数原型如下:
BOOL MessageBeep(
UINT uType
);
其中uType必须是以下中的一个
Value | Meaning |
---|---|
-1 | Simple beep. If the sound card is not available, the sound is generated using the speaker. Note that this value is resolved to 0xFFFFFFFF within the function. |
MB_ICONASTERISK 0x00000040L | SystemAsterisk |
MB_ICONEXCLAMATION 0x00000030L | SystemExclamation |
MB_ICONHAND 0x00000010L | SystemHand |
MB_ICONQUESTION 0x00000020L | SystemQuestion |
MB_OK 0x00000000L | SystemDefault |