mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 16:35:49 +00:00
Implement IsGUIThread.
svn path=/trunk/; revision=29171
This commit is contained in:
parent
ead5a4f94e
commit
82ad159967
2 changed files with 23 additions and 12 deletions
|
@ -269,6 +269,29 @@ EndTask(
|
||||||
return TRUE;
|
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
|
PUSER_HANDLE_ENTRY
|
||||||
FASTCALL
|
FASTCALL
|
||||||
GetUser32Handle(HANDLE handle)
|
GetUser32Handle(HANDLE handle)
|
||||||
|
|
|
@ -539,18 +539,6 @@ GetRegisteredRawInputDevices(
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* @unimplemented
|
|
||||||
*/
|
|
||||||
BOOL
|
|
||||||
STDCALL
|
|
||||||
IsGUIThread(
|
|
||||||
BOOL bConvert)
|
|
||||||
{
|
|
||||||
UNIMPLEMENTED;
|
|
||||||
return FALSE;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* @unimplemented
|
* @unimplemented
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue