mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
unstubbed MessageBeep()
svn path=/trunk/; revision=5733
This commit is contained in:
parent
7b8304433e
commit
8b52facc15
3 changed files with 47 additions and 37 deletions
|
@ -2100,6 +2100,7 @@ extern "C" {
|
||||||
#define MB_TASKMODAL (0x2000L)
|
#define MB_TASKMODAL (0x2000L)
|
||||||
#define MB_YESNO (0x4L)
|
#define MB_YESNO (0x4L)
|
||||||
#define MB_YESNOCANCEL (0x3L)
|
#define MB_YESNOCANCEL (0x3L)
|
||||||
|
#define MB_CANCELTRYCONTINUE (0x6L)
|
||||||
#define IDABORT (3)
|
#define IDABORT (3)
|
||||||
#define IDCANCEL (2)
|
#define IDCANCEL (2)
|
||||||
#define IDCLOSE (8)
|
#define IDCLOSE (8)
|
||||||
|
@ -2109,6 +2110,8 @@ extern "C" {
|
||||||
#define IDOK (1)
|
#define IDOK (1)
|
||||||
#define IDRETRY (4)
|
#define IDRETRY (4)
|
||||||
#define IDYES (6)
|
#define IDYES (6)
|
||||||
|
#define IDTRYAGAIN (10)
|
||||||
|
#define IDCONTINUE (11)
|
||||||
|
|
||||||
/* MessageProc */
|
/* MessageProc */
|
||||||
#define MSGF_DIALOGBOX (0)
|
#define MSGF_DIALOGBOX (0)
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: stubs.c,v 1.35 2003/08/21 15:26:18 weiden Exp $
|
/* $Id: stubs.c,v 1.36 2003/08/22 00:33:47 weiden Exp $
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS user32.dll
|
* PROJECT: ReactOS user32.dll
|
||||||
|
@ -235,30 +235,6 @@ LockWorkStation(VOID)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
* @implemented
|
|
||||||
*/
|
|
||||||
WINBOOL
|
|
||||||
STDCALL
|
|
||||||
MessageBeep(
|
|
||||||
UINT uType)
|
|
||||||
{
|
|
||||||
CHAR EventName[64];
|
|
||||||
|
|
||||||
switch(uType)
|
|
||||||
{
|
|
||||||
case 0xFFFFFFFF : return Beep(500, 100); // Beep through speaker
|
|
||||||
case MB_ICONASTERISK : strcpy(EventName, "SystemAsterisk"); break;
|
|
||||||
case MB_ICONEXCLAMATION : strcpy(EventName, "SystemExclamation"); break;
|
|
||||||
case MB_ICONHAND : strcpy(EventName, "SystemHand"); break;
|
|
||||||
case MB_ICONQUESTION : strcpy(EventName, "SystemQuestion"); break;
|
|
||||||
case MB_OK : strcpy(EventName, "SystemDefault"); break;
|
|
||||||
}
|
|
||||||
// return PlaySoundA((LPCSTR) &EventName, NULL, SND_ALIAS | SND_NOWAIT | SND_NOSTOP | SND_ASYNC);
|
|
||||||
return FALSE;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* @unimplemented
|
* @unimplemented
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
/* $Id: messagebox.c,v 1.11 2003/08/09 14:25:07 chorns Exp $
|
/* $Id: messagebox.c,v 1.12 2003/08/22 00:33:47 weiden Exp $
|
||||||
*
|
*
|
||||||
* PROJECT: ReactOS user32.dll
|
* PROJECT: ReactOS user32.dll
|
||||||
* FILE: lib/user32/windows/messagebox.c
|
* FILE: lib/user32/windows/messagebox.c
|
||||||
|
@ -40,6 +40,8 @@
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <debug.h>
|
#include <debug.h>
|
||||||
|
|
||||||
|
typedef UINT *LPUINT;
|
||||||
|
#include <mmsystem.h>
|
||||||
|
|
||||||
/* DEFINES *******************************************************************/
|
/* DEFINES *******************************************************************/
|
||||||
|
|
||||||
|
@ -67,16 +69,6 @@
|
||||||
#ifndef MB_DEFMASK
|
#ifndef MB_DEFMASK
|
||||||
#define MB_DEFMASK 0x00000F00
|
#define MB_DEFMASK 0x00000F00
|
||||||
#endif
|
#endif
|
||||||
#ifndef MB_CANCELTRYCONTINUE
|
|
||||||
#define MB_CANCELTRYCONTINUE (0x6L)
|
|
||||||
#endif
|
|
||||||
#ifndef IDTRYAGAIN
|
|
||||||
#define IDTRYAGAIN 10
|
|
||||||
#endif
|
|
||||||
#ifndef IDCONTINUE
|
|
||||||
#define IDCONTINUE 11
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
/* FUNCTIONS *****************************************************************/
|
/* FUNCTIONS *****************************************************************/
|
||||||
|
|
||||||
|
@ -688,10 +680,49 @@ MessageBoxW(
|
||||||
*/
|
*/
|
||||||
DWORD
|
DWORD
|
||||||
STDCALL
|
STDCALL
|
||||||
SoftModalMessageBox (DWORD Unknown0)
|
SoftModalMessageBox(DWORD Unknown0)
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED;
|
UNIMPLEMENTED;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* @implemented
|
||||||
|
*/
|
||||||
|
WINBOOL
|
||||||
|
STDCALL
|
||||||
|
MessageBeep(UINT uType)
|
||||||
|
{
|
||||||
|
#if 0
|
||||||
|
LPWSTR EventName;
|
||||||
|
|
||||||
|
switch(uType)
|
||||||
|
{
|
||||||
|
case 0xFFFFFFFF:
|
||||||
|
/* FIXME check if soundcard installed, else fall through to MB_OK */
|
||||||
|
return Beep(500, 100); // Beep through speaker
|
||||||
|
case MB_OK:
|
||||||
|
EventName = L"SystemDefault";
|
||||||
|
break;
|
||||||
|
case MB_ICONASTERISK:
|
||||||
|
EventName = L"SystemAsterisk";
|
||||||
|
break;
|
||||||
|
case MB_ICONEXCLAMATION:
|
||||||
|
EventName = L"SystemExclamation";
|
||||||
|
break;
|
||||||
|
case MB_ICONHAND:
|
||||||
|
EventName = L"SystemHand";
|
||||||
|
break;
|
||||||
|
case MB_ICONQUESTION:
|
||||||
|
EventName = L"SystemQuestion";
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
DbgPrint("Playing sound: %ws\n", (LPWSTR)EventName);
|
||||||
|
return PlaySoundW(EventName, NULL, SND_ALIAS | SND_NOWAIT | SND_NOSTOP | SND_ASYNC);
|
||||||
|
#else
|
||||||
|
return Beep(500, 100); // Beep through speaker
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
/* EOF */
|
/* EOF */
|
||||||
|
|
Loading…
Reference in a new issue