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; return KeGetCurrentThread()->id.UniqueProcess;
} }
/***********************************************************************
* PsGetCurrentProcessSessionId (NTOSKRNL.EXE.@)
*/
ULONG WINAPI PsGetCurrentProcessSessionId(void)
{
return PsGetCurrentProcess()->info.PebBaseAddress->SessionId;
}
/*********************************************************************** /***********************************************************************
* PsGetCurrentThreadId (NTOSKRNL.EXE.@) * PsGetCurrentThreadId (NTOSKRNL.EXE.@)

View File

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