Commit e8e1f1e6 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

kernel32: Move Beep() to kernelbase.

parent 810873eb
...@@ -68,18 +68,6 @@ HWND WINAPI GetConsoleWindow(void) ...@@ -68,18 +68,6 @@ HWND WINAPI GetConsoleWindow(void)
} }
/***********************************************************************
* Beep (KERNEL32.@)
*/
BOOL WINAPI Beep( DWORD dwFreq, DWORD dwDur )
{
/* FIXME: we should not require a console to be attached */
DeviceIoControl( RtlGetCurrentPeb()->ProcessParameters->ConsoleHandle,
IOCTL_CONDRV_BEEP, NULL, 0, NULL, 0, NULL, NULL );
return TRUE;
}
/****************************************************************** /******************************************************************
* OpenConsoleW (KERNEL32.@) * OpenConsoleW (KERNEL32.@)
* *
......
...@@ -195,7 +195,7 @@ ...@@ -195,7 +195,7 @@
# @ stub BasepFreeActivationContextActivationBlock # @ stub BasepFreeActivationContextActivationBlock
# @ stub BasepFreeAppCompatData # @ stub BasepFreeAppCompatData
# @ stub BasepMapModuleHandle # @ stub BasepMapModuleHandle
@ stdcall Beep(long long) @ stdcall -import Beep(long long)
@ stdcall BeginUpdateResourceA(str long) @ stdcall BeginUpdateResourceA(str long)
@ stdcall BeginUpdateResourceW(wstr long) @ stdcall BeginUpdateResourceW(wstr long)
@ stdcall BindIoCompletionCallback(long ptr long) @ stdcall BindIoCompletionCallback(long ptr long)
......
...@@ -1658,6 +1658,19 @@ BOOL WINAPI DECLSPEC_HOTPATCH WriteConsoleOutputCharacterW( HANDLE handle, LPCWS ...@@ -1658,6 +1658,19 @@ BOOL WINAPI DECLSPEC_HOTPATCH WriteConsoleOutputCharacterW( HANDLE handle, LPCWS
return ret; return ret;
} }
/***********************************************************************
* Beep (kernelbase.@)
*/
BOOL WINAPI Beep( DWORD frequency, DWORD duration )
{
/* FIXME: we should not require a console to be attached */
console_ioctl( RtlGetCurrentPeb()->ProcessParameters->ConsoleHandle,
IOCTL_CONDRV_BEEP, NULL, 0, NULL, 0, NULL );
return TRUE;
}
static HANDLE create_pseudo_console( COORD size, HANDLE input, HANDLE output, HANDLE signal, static HANDLE create_pseudo_console( COORD size, HANDLE input, HANDLE output, HANDLE signal,
DWORD flags, HANDLE *process ) DWORD flags, HANDLE *process )
{ {
......
...@@ -93,7 +93,7 @@ ...@@ -93,7 +93,7 @@
# @ stub BasepCopyFileCallback # @ stub BasepCopyFileCallback
# @ stub BasepCopyFileExW # @ stub BasepCopyFileExW
# @ stub BasepNotifyTrackingService # @ stub BasepNotifyTrackingService
@ stdcall Beep(long long) kernel32.Beep @ stdcall Beep(long long)
@ stub BemCopyReference @ stub BemCopyReference
@ stub BemCreateContractFrom @ stub BemCreateContractFrom
@ stub BemCreateReference @ stub BemCreateReference
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment