Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

msgbeep.c File Reference

#include "precomp.h"
#include <ntddbeep.h>
#include <mmsystem.h>

Go to the source code of this file.

Functions

BOOL xxxOldMessageBeep ()
BOOL xxxMessageBeep (UINT dwType)
VOID PlayEventSound (UINT idSound)


Function Documentation

VOID PlayEventSound UINT  idSound  ) 
 

Definition at line 108 of file kernel/msgbeep.c.

References _PostMessage(), gspwndLogonNotify, PtiCurrent, PUDF_EXTENDEDSOUNDS, TEST_PUDF, tagTHREADINFO::TIF_flags, TIF_SYSTEMTHREAD, and VOID().

Referenced by xxxCreateThreadInfo(), xxxMenuWindowProc(), xxxMNCancel(), xxxMNOpenHierarchy(), xxxSnapWindow(), xxxSysCommand(), and xxxTrackPopupMenuEx().

00109 { 00110 PTHREADINFO pti = PtiCurrent(); 00111 00112 if (!TEST_PUDF(PUDF_EXTENDEDSOUNDS)) 00113 return; 00114 00115 if (pti->TIF_flags & TIF_SYSTEMTHREAD) 00116 return; 00117 00118 if (gspwndLogonNotify) { 00119 _PostMessage(gspwndLogonNotify, WM_LOGONNOTIFY, LOGON_PLAYEVENTSOUND, idSound); 00120 } 00121 00122 // BUGBUG -- we should only flash SoundSentry if a sound is played. With the 00123 // new technique of posting to WinLogon, we can't determine this here. 00124 // _UserSoundSentryWorker(); 00125 00126 }

BOOL xxxMessageBeep UINT  dwType  ) 
 

Definition at line 52 of file kernel/msgbeep.c.

References _PostMessage(), _UserSoundSentryWorker(), BOOL, gspwndLogonNotify, PtiCurrent, PUDF_BEEP, TEST_PUDF, tagTHREADINFO::TIF_flags, TIF_SYSTEMTHREAD, TRUE, UINT, USER_SOUND_DEFAULT, USER_SOUND_SYSTEMASTERISK, USER_SOUND_SYSTEMEXCLAMATION, USER_SOUND_SYSTEMHAND, USER_SOUND_SYSTEMQUESTION, and xxxOldMessageBeep().

Referenced by xxxDefWindowProc(), xxxDWP_SetCursor(), xxxInternalToUnicode(), xxxMNChar(), and xxxMNKeyFilter().

00054 { 00055 UINT sndid; 00056 PTHREADINFO pti = PtiCurrent(); 00057 00058 if (pti->TIF_flags & TIF_SYSTEMTHREAD) { 00059 xxxOldMessageBeep(); 00060 return TRUE; 00061 } 00062 00063 if (!TEST_PUDF(PUDF_BEEP)) { 00064 _UserSoundSentryWorker(); 00065 return TRUE; 00066 } 00067 00068 switch(dwType & MB_ICONMASK) { 00069 case MB_ICONHAND: 00070 sndid = USER_SOUND_SYSTEMHAND; 00071 break; 00072 00073 case MB_ICONQUESTION: 00074 sndid = USER_SOUND_SYSTEMQUESTION; 00075 break; 00076 00077 case MB_ICONEXCLAMATION: 00078 sndid = USER_SOUND_SYSTEMEXCLAMATION; 00079 break; 00080 00081 case MB_ICONASTERISK: 00082 sndid = USER_SOUND_SYSTEMASTERISK; 00083 break; 00084 00085 default: 00086 sndid = USER_SOUND_DEFAULT; 00087 break; 00088 } 00089 00090 if (gspwndLogonNotify) { 00091 _PostMessage(gspwndLogonNotify, WM_LOGONNOTIFY, LOGON_PLAYEVENTSOUND, sndid); 00092 } 00093 00094 _UserSoundSentryWorker(); 00095 00096 return TRUE; 00097 }

BOOL xxxOldMessageBeep  ) 
 

Definition at line 27 of file kernel/msgbeep.c.

References _UserSoundSentryWorker(), BOOL, EnterCrit, LeaveCrit, PUDF_BEEP, TEST_PUDF, TRUE, and UserBeep().

Referenced by xxxMessageBeep().

00028 { 00029 BOOL b; 00030 if (TEST_PUDF(PUDF_BEEP)) { 00031 LeaveCrit(); 00032 b = UserBeep(440, 125); 00033 EnterCrit(); 00034 return b; 00035 } else { 00036 _UserSoundSentryWorker(); 00037 } 00038 00039 return TRUE; 00040 }


Generated on Sat May 15 19:44:48 2004 for test by doxygen 1.3.7