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:
parent
f776c46642
commit
db98059c71
|
@ -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.@)
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue