Author: jimtabor
Date: Mon Sep 24 06:42:17 2007
New Revision: 29171
URL:
http://svn.reactos.org/svn/reactos?rev=29171&view=rev
Log:
Implement IsGUIThread.
Modified:
trunk/reactos/dll/win32/user32/misc/misc.c
trunk/reactos/dll/win32/user32/misc/stubs.c
Modified: trunk/reactos/dll/win32/user32/misc/misc.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/user32/misc/misc…
==============================================================================
--- trunk/reactos/dll/win32/user32/misc/misc.c (original)
+++ trunk/reactos/dll/win32/user32/misc/misc.c Mon Sep 24 06:42:17 2007
@@ -269,6 +269,29 @@
return TRUE;
}
+/*
+ * @implemented
+ */
+BOOL
+STDCALL
+IsGUIThread(
+ BOOL bConvert)
+{
+ PW32THREADINFO ti = (PW32THREADINFO)NtCurrentTeb()->Win32ThreadInfo;
+ if (ti == NULL)
+ {
+ if(bConvert)
+ {
+ if (NtUserGetThreadState(THREADSTATE_GETTHREADINFO)) return TRUE;
+ else
+ SetLastError(ERROR_NOT_ENOUGH_MEMORY);
+ }
+ return FALSE;
+ }
+ else
+ return TRUE;
+}
+
PUSER_HANDLE_ENTRY
FASTCALL
GetUser32Handle(HANDLE handle)
Modified: trunk/reactos/dll/win32/user32/misc/stubs.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/user32/misc/stub…
==============================================================================
--- trunk/reactos/dll/win32/user32/misc/stubs.c (original)
+++ trunk/reactos/dll/win32/user32/misc/stubs.c Mon Sep 24 06:42:17 2007
@@ -544,18 +544,6 @@
*/
BOOL
STDCALL
-IsGUIThread(
- BOOL bConvert)
-{
- UNIMPLEMENTED;
- return FALSE;
-}
-
-/*
- * @unimplemented
- */
-BOOL
-STDCALL
PrintWindow(
HWND hwnd,
HDC hdcBlt,