// ntddk.h
ULONG PsGetServerSiloActiveConsoleId(
PESILO Silo
);
View the official Windows Driver Kit DDI referenceNo description available.
Gets the active console for the current server silo context for the supplied thread.
SiloA pointer to the silo of the job.
Returns the session id for the active console session.