Author: jimtabor
Date: Mon Mar 31 20:41:19 2008
New Revision: 32802
URL:
http://svn.reactos.org/svn/reactos?rev=32802&view=rev
Log:
Move implemented functions out of stubs.
Modified:
trunk/reactos/dll/win32/kernel32/misc/stubs.c
trunk/reactos/dll/win32/kernel32/thread/thread.c
Modified: trunk/reactos/dll/win32/kernel32/misc/stubs.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/misc/st…
==============================================================================
--- trunk/reactos/dll/win32/kernel32/misc/stubs.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/kernel32/misc/stubs.c [iso-8859-1] Mon Mar 31 20:41:19 2008
@@ -645,62 +645,6 @@
/*
* @unimplemented
*/
-BOOL
-STDCALL
-RegisterWaitForSingleObject(
- PHANDLE phNewWaitObject,
- HANDLE hObject,
- WAITORTIMERCALLBACK Callback,
- PVOID Context,
- ULONG dwMilliseconds,
- ULONG dwFlags
- )
-{
- 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;
-}
-
-/*
- * @unimplemented
- */
-HANDLE
-STDCALL
-RegisterWaitForSingleObjectEx(
- HANDLE hObject,
- WAITORTIMERCALLBACK Callback,
- PVOID Context,
- ULONG dwMilliseconds,
- ULONG dwFlags
- )
-{
- NTSTATUS status;
- HANDLE hNewWaitObject;
-
-// TRACE("%p %p %p %d %d\n",
-// hObject,Callback,Context,dwMilliseconds,dwFlags);
-
- status = RtlRegisterWait( &hNewWaitObject, hObject, Callback, Context,
dwMilliseconds, dwFlags );
- if (status != STATUS_SUCCESS)
- {
- SetLastError( RtlNtStatusToDosError(status) );
- return NULL;
- }
- return hNewWaitObject;
-}
-
-/*
- * @unimplemented
- */
ULONG
STDCALL
RemoveVectoredExceptionHandler(
@@ -803,51 +747,6 @@
{
STUB;
return 0;
-}
-
-/*
- * @unimplemented
- */
-BOOL
-STDCALL
-UnregisterWait(
- HANDLE WaitHandle
- )
-{
- NTSTATUS status;
-
-// TRACE("%p\n",WaitHandle);
-
- status = RtlDeregisterWaitEx( WaitHandle, NULL );
- if (status != STATUS_SUCCESS)
- {
- SetLastError( RtlNtStatusToDosError(status) );
- return FALSE;
- }
- return TRUE;
-}
-
-/*
- * @unimplemented
- */
-BOOL
-STDCALL
-UnregisterWaitEx(
- HANDLE WaitHandle,
- HANDLE CompletionEvent
- )
-{
- NTSTATUS status;
-
-// TRACE("%p\n",WaitHandle);
-
- status = RtlDeregisterWaitEx( WaitHandle, CompletionEvent );
- if (status != STATUS_SUCCESS)
- {
- SetLastError( RtlNtStatusToDosError(status) );
- return FALSE;
- }
- return TRUE;
}
/*
Modified: trunk/reactos/dll/win32/kernel32/thread/thread.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/thread/…
==============================================================================
--- trunk/reactos/dll/win32/kernel32/thread/thread.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/kernel32/thread/thread.c [iso-8859-1] Mon Mar 31 20:41:19
2008
@@ -927,4 +927,105 @@
return TRUE;
}
+
+/*
+ * @implemented
+ */
+BOOL
+STDCALL
+RegisterWaitForSingleObject(
+ PHANDLE phNewWaitObject,
+ HANDLE hObject,
+ WAITORTIMERCALLBACK Callback,
+ PVOID Context,
+ ULONG dwMilliseconds,
+ ULONG dwFlags
+ )
+{
+ NTSTATUS Status = RtlRegisterWait( phNewWaitObject,
+ hObject,
+ Callback,
+ Context,
+ dwMilliseconds,
+ dwFlags );
+
+ if (Status != STATUS_SUCCESS)
+ {
+ SetLastError( RtlNtStatusToDosError(Status) );
+ return FALSE;
+ }
+ return TRUE;
+}
+
+
+/*
+ * @implemented
+ */
+HANDLE
+STDCALL
+RegisterWaitForSingleObjectEx(
+ HANDLE hObject,
+ WAITORTIMERCALLBACK Callback,
+ PVOID Context,
+ ULONG dwMilliseconds,
+ ULONG dwFlags
+ )
+{
+ NTSTATUS Status;
+ HANDLE hNewWaitObject;
+
+ Status = RtlRegisterWait( &hNewWaitObject,
+ hObject,
+ Callback,
+ Context,
+ dwMilliseconds,
+ dwFlags );
+
+ if (Status != STATUS_SUCCESS)
+ {
+ SetLastError( RtlNtStatusToDosError(Status) );
+ return NULL;
+ }
+ return hNewWaitObject;
+}
+
+
+/*
+ * @implemented
+ */
+BOOL
+STDCALL
+UnregisterWait(
+ HANDLE WaitHandle
+ )
+{
+ NTSTATUS Status = RtlDeregisterWaitEx( WaitHandle, NULL );
+ if (Status != STATUS_SUCCESS)
+ {
+ SetLastError( RtlNtStatusToDosError(Status) );
+ return FALSE;
+ }
+ return TRUE;
+}
+
+
+/*
+ * @implemented
+ */
+BOOL
+STDCALL
+UnregisterWaitEx(
+ HANDLE WaitHandle,
+ HANDLE CompletionEvent
+ )
+{
+ NTSTATUS Status = RtlDeregisterWaitEx( WaitHandle, CompletionEvent );
+ if (Status != STATUS_SUCCESS)
+ {
+ SetLastError( RtlNtStatusToDosError(Status) );
+ return FALSE;
+ }
+ return TRUE;
+}
+
/* EOF */