On 31/01/2008 in message
<9c213ad5-ece6-4168-8692-3e21cb8a9313@e25g2000prg.googlegroups.com> nvx
[quoted text, click to view] wrote:
>Hello,
>I would like to play at a certain moment the exact sound that Windows
>play when an information message box is shown (the one with blue "i"
>in the bubble). I know I could find the .wav file and play it somehow,
>but I'd like to play the sound that is assigned to the info message
>box in the Windows settings. Is there a way to do this?
I think you will need to use the Windows API and call MessageBeep:
// MessageBeep
[DllImport("user32.dll")]
public static extern int MessageBeep(int wType);
You can set wType to:
-1 - Simple beep
MB_ICONASTERISK 0x00000040L SystemAsterisk
MB_ICONEXCLAMATION 0x00000030L SystemExclamation
MB_ICONHAND 0x00000010L SystemHand
MB_ICONQUESTION 0x00000020L SystemQuestion
MB_OK 0x00000000L SystemDefault
--