- Implement and export PsGetCurrentThreadWin32ThreadAndEnterCriticalRegion.

svn path=/trunk/; revision=60318
This commit is contained in:
Alex Ionescu 2013-09-22 18:54:58 +00:00
parent 7e3fbb3780
commit e8b55a9f69
2 changed files with 12 additions and 1 deletions

View file

@ -969,7 +969,7 @@
@ stdcall PsGetCurrentThreadStackLimit() @ stdcall PsGetCurrentThreadStackLimit()
@ stdcall PsGetCurrentThreadTeb() @ stdcall PsGetCurrentThreadTeb()
@ stdcall PsGetCurrentThreadWin32Thread() @ stdcall PsGetCurrentThreadWin32Thread()
;PsGetCurrentThreadWin32ThreadAndEnterCriticalRegion @ stdcall PsGetCurrentThreadWin32ThreadAndEnterCriticalRegion()
@ stdcall PsGetJobLock(ptr) @ stdcall PsGetJobLock(ptr)
@ stdcall PsGetJobSessionId(ptr) @ stdcall PsGetJobSessionId(ptr)
@ stdcall PsGetJobUIRestrictionsClass(ptr) @ stdcall PsGetJobUIRestrictionsClass(ptr)

View file

@ -796,6 +796,17 @@ PsGetCurrentThreadWin32Thread(VOID)
return PsGetCurrentThread()->Tcb.Win32Thread; return PsGetCurrentThread()->Tcb.Win32Thread;
} }
/*
* @implemented
*/
PVOID
NTAPI
PsGetCurrentThreadWin32ThreadAndEnterCriticalRegion(VOID)
{
KeEnterCriticalRegion();
return PsGetCurrentThread()->Tcb.Win32Thread;
}
/* /*
* @implemented * @implemented
*/ */