ntoskrnl.exe: Implement PsGetCurrentProcessSessionId.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=36887
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alistair Leslie-Hughes 2021-08-27 16:45:05 +10:00 committed by Alexandre Julliard
parent 07ecdf6ce2
commit 5aec01a7af
2 changed files with 8 additions and 1 deletions

View File

@ -3008,6 +3008,13 @@ HANDLE WINAPI PsGetCurrentProcessId(void)
return KeGetCurrentThread()->id.UniqueProcess;
}
/***********************************************************************
* PsGetCurrentProcessSessionId (NTOSKRNL.EXE.@)
*/
ULONG WINAPI PsGetCurrentProcessSessionId(void)
{
return PsGetCurrentProcess()->info.PebBaseAddress->SessionId;
}
/***********************************************************************
* PsGetCurrentThreadId (NTOSKRNL.EXE.@)

View File

@ -888,7 +888,7 @@
@ stub PsGetContextThread
@ stdcall PsGetCurrentProcess() IoGetCurrentProcess
@ stdcall PsGetCurrentProcessId()
@ stub PsGetCurrentProcessSessionId
@ stdcall PsGetCurrentProcessSessionId()
@ stdcall PsGetCurrentThread() KeGetCurrentThread
@ stdcall PsGetCurrentThreadId()
@ stub PsGetCurrentThreadPreviousMode