// ntddk.h
PESILO PsGetCurrentServerSilo();
View the official Windows Driver Kit DDI referenceNo description available.
This routine returns the effective server silo for the thread.
A pointer to the current server silo. This pointer is valid for the current thread, but must be referenced before transferring to another thread (for example, via a workitem).