modKmOpaque module
Offsets of fields inside kernel structures that Windows keeps opaque.
An opaque structure, such as EPROCESS, has no documented layout: drivers receive a pointer to it and pass that pointer to the kernel’s routines, which read its fields. This module holds the offset of one field, Token, as the package’s author found it for several versions of Windows.
Warning
Microsoft documents no offset inside an opaque structure, and its layout changes between versions of Windows, updates included. An offset is right only for the builds it was found on, and a driver that reads or writes through it on any other build corrupts kernel memory. The documented routines read the field on every build: for a process’s token, PsReferencePrimaryToken, which the package does not declare.
Constants
The Windows versions are those the package’s description of each constant gives. None is declared with a type, so each is an Integer.
| Name | Value | Description |
|---|---|---|
| EPROCESS_TOKEN_OFFSET_10 | &H0358 | Windows 10, from its first release to version 1809. |
| EPROCESS_TOKEN_OFFSET_1903 | &H0360 | Windows 10 version 1903 only. |
| EPROCESS_TOKEN_OFFSET_1909 | &H04B8 | Windows 10 version 1909 to Windows 11 version 22H2, the last build its author checked. |
| EPROCESS_TOKEN_OFFSET_7 | &H0208 | 64-bit Windows 7 only. |
| EPROCESS_TOKEN_OFFSET_7x86 | &HF8 | 32-bit Windows 7 only. |