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)
}
/***********************************************************************
* 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.@)
*
......
......@@ -195,7 +195,7 @@
# @ stub BasepFreeActivationContextActivationBlock
# @ stub BasepFreeAppCompatData
# @ stub BasepMapModuleHandle
@ stdcall Beep(long long)
@ stdcall -import Beep(long long)
@ stdcall BeginUpdateResourceA(str long)
@ stdcall BeginUpdateResourceW(wstr long)
@ stdcall BindIoCompletionCallback(long ptr long)
......
......@@ -1658,6 +1658,19 @@ BOOL WINAPI DECLSPEC_HOTPATCH WriteConsoleOutputCharacterW( HANDLE handle, LPCWS
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,
DWORD flags, HANDLE *process )
{
......
......@@ -93,7 +93,7 @@
# @ stub BasepCopyFileCallback
# @ stub BasepCopyFileExW
# @ stub BasepNotifyTrackingService
@ stdcall Beep(long long) kernel32.Beep
@ stdcall Beep(long long)
@ stub BemCopyReference
@ stub BemCreateContractFrom
@ 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