kernel32: Implement RegisterWaitForSingleObject and UnregisterWait.

This commit is contained in:
Rob Shearman 2008-01-01 22:37:25 +00:00 committed by Alexandre Julliard
parent 25bc7023ba
commit 1822a722d9
1 changed files with 22 additions and 4 deletions

View File

@ -249,10 +249,19 @@ BOOL WINAPI RegisterWaitForSingleObject(PHANDLE phNewWaitObject, HANDLE hObject,
WAITORTIMERCALLBACK Callback, PVOID Context,
ULONG dwMilliseconds, ULONG dwFlags)
{
FIXME("%p %p %p %p %d %d\n",
NTSTATUS status;
TRACE("%p %p %p %p %d %d\n",
phNewWaitObject,hObject,Callback,Context,dwMilliseconds,dwFlags);
status = RtlRegisterWait( phNewWaitObject, hObject, Callback, Context, dwMilliseconds, dwFlags );
if (status != STATUS_SUCCESS)
{
SetLastError( RtlNtStatusToDosError(status) );
return FALSE;
}
return TRUE;
}
/***********************************************************************
* RegisterWaitForSingleObjectEx (KERNEL32.@)
@ -271,9 +280,18 @@ HANDLE WINAPI RegisterWaitForSingleObjectEx( HANDLE hObject,
*/
BOOL WINAPI UnregisterWait( HANDLE WaitHandle )
{
FIXME("%p\n",WaitHandle);
NTSTATUS status;
TRACE("%p\n",WaitHandle);
status = RtlDeregisterWait( WaitHandle );
if (status != STATUS_SUCCESS)
{
SetLastError( RtlNtStatusToDosError(status) );
return FALSE;
}
return TRUE;
}
/***********************************************************************
* UnregisterWaitEx (KERNEL32.@)