kernel32: Implement RegisterWaitForSingleObject and UnregisterWait.
This commit is contained in:
parent
25bc7023ba
commit
1822a722d9
|
@ -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);
|
||||
return FALSE;
|
||||
|
||||
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);
|
||||
return FALSE;
|
||||
NTSTATUS status;
|
||||
|
||||
TRACE("%p\n",WaitHandle);
|
||||
|
||||
status = RtlDeregisterWait( WaitHandle );
|
||||
if (status != STATUS_SUCCESS)
|
||||
{
|
||||
SetLastError( RtlNtStatusToDosError(status) );
|
||||
return FALSE;
|
||||
}
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
/***********************************************************************
|
||||
|
|
Loading…
Reference in New Issue