Implement IsGUIThread.

svn path=/trunk/; revision=29171
This commit is contained in:
James Tabor 2007-09-24 02:42:17 +00:00
parent ead5a4f94e
commit 82ad159967
2 changed files with 23 additions and 12 deletions

View file

@ -269,6 +269,29 @@ EndTask(
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)

View file

@ -539,18 +539,6 @@ GetRegisteredRawInputDevices(
return FALSE;
}
/*
* @unimplemented
*/
BOOL
STDCALL
IsGUIThread(
BOOL bConvert)
{
UNIMPLEMENTED;
return FALSE;
}
/*
* @unimplemented
*/