Commit 1822a722 authored by Rob Shearman's avatar Rob Shearman Committed by Alexandre Julliard

kernel32: Implement RegisterWaitForSingleObject and UnregisterWait.

parent 25bc7023
......@@ -249,9 +249,18 @@ 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;
}
/***********************************************************************
......@@ -271,8 +280,17 @@ 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;
}
/***********************************************************************
......
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