kernel32: Implement RegisterWaitForSingleObject and UnregisterWait.
This commit is contained in:
parent
25bc7023ba
commit
1822a722d9
|
@ -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.@)
|
||||
|
|
Loading…
Reference in New Issue