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>
(cherry picked from commit 5aec01a7af)
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
This commit is contained in:
Alistair Leslie-Hughes 2021-08-27 16:45:05 +10:00 committed by Michael Stefaniuc
parent f776c46642
commit db98059c71
2 changed files with 8 additions and 1 deletions

View File

@ -2945,6 +2945,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

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