From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "struct" |
|---|
| subject | "Platform:Windows" |
|---|
| claim | "RTL_USER_PROCESS_PARAMETERS (x64): flags +8, standard handles +0x20..+0x30, CurrentDirectory +0x38, DllPath +0x50, ImagePathName +0x60, CommandLine +0x70, Environment +0x80, WindowTitle +0xB0, DesktopInfo +0xC0; 32 drive-letter current directories start at +0xF0." |
|---|
| scope | | level | "platform" |
|---|
| applies_to | "Platform:Windows" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "RTL_USER_PROCESS_PARAMETERS" |
|---|
| abi | "win64" |
|---|
| variant | "x64" |
|---|
| size_min | 1008 |
|---|
| fields | | offset | "0x00" |
|---|
| size | 4 |
|---|
| type | "ULONG" |
|---|
| name | "MaximumLength" |
|---|
|
| offset | "0x04" |
|---|
| size | 4 |
|---|
| type | "ULONG" |
|---|
| name | "Length" |
|---|
|
| offset | "0x08" |
|---|
| size | 4 |
|---|
| type | "ULONG" |
|---|
| name | "Flags" |
|---|
| notes | "bit 0 RTL_USER_PROC_PARAMS_NORMALIZED: string buffers are pointers, else offsets" |
|---|
|
| offset | "0x0C" |
|---|
| size | 4 |
|---|
| type | "ULONG" |
|---|
| name | "DebugFlags" |
|---|
|
| offset | "0x10" |
|---|
| size | 8 |
|---|
| type | "HANDLE" |
|---|
| name | "ConsoleHandle" |
|---|
|
| offset | "0x18" |
|---|
| size | 4 |
|---|
| type | "ULONG" |
|---|
| name | "ConsoleFlags" |
|---|
|
| offset | "0x20" |
|---|
| size | 8 |
|---|
| type | "HANDLE" |
|---|
| name | "StandardInput" |
|---|
|
| offset | "0x28" |
|---|
| size | 8 |
|---|
| type | "HANDLE" |
|---|
| name | "StandardOutput" |
|---|
|
| offset | "0x30" |
|---|
| size | 8 |
|---|
| type | "HANDLE" |
|---|
| name | "StandardError" |
|---|
|
| offset | "0x38" |
|---|
| size | 16 |
|---|
| type | "UNICODE_STRING" |
|---|
| name | "CurrentDirectory.DosPath" |
|---|
|
| offset | "0x48" |
|---|
| size | 8 |
|---|
| type | "HANDLE" |
|---|
| name | "CurrentDirectory.Handle" |
|---|
|
| offset | "0x50" |
|---|
| size | 16 |
|---|
| type | "UNICODE_STRING" |
|---|
| name | "DllPath" |
|---|
|
| offset | "0x60" |
|---|
| size | 16 |
|---|
| type | "UNICODE_STRING" |
|---|
| name | "ImagePathName" |
|---|
|
| offset | "0x70" |
|---|
| size | 16 |
|---|
| type | "UNICODE_STRING" |
|---|
| name | "CommandLine" |
|---|
|
| offset | "0x80" |
|---|
| size | 8 |
|---|
| type | "PVOID" |
|---|
| name | "Environment" |
|---|
|
| offset | "0x88" |
|---|
| size | 4 |
|---|
| type | "ULONG" |
|---|
| name | "StartingX" |
|---|
|
| offset | "0x8C" |
|---|
| size | 4 |
|---|
| type | "ULONG" |
|---|
| name | "StartingY" |
|---|
|
| offset | "0x90" |
|---|
| size | 4 |
|---|
| type | "ULONG" |
|---|
| name | "CountX" |
|---|
|
| offset | "0x94" |
|---|
| size | 4 |
|---|
| type | "ULONG" |
|---|
| name | "CountY" |
|---|
|
| offset | "0x98" |
|---|
| size | 4 |
|---|
| type | "ULONG" |
|---|
| name | "CountCharsX" |
|---|
|
| offset | "0x9C" |
|---|
| size | 4 |
|---|
| type | "ULONG" |
|---|
| name | "CountCharsY" |
|---|
|
| offset | "0xA0" |
|---|
| size | 4 |
|---|
| type | "ULONG" |
|---|
| name | "FillAttribute" |
|---|
|
| offset | "0xA4" |
|---|
| size | 4 |
|---|
| type | "ULONG" |
|---|
| name | "WindowFlags" |
|---|
|
| offset | "0xA8" |
|---|
| size | 4 |
|---|
| type | "ULONG" |
|---|
| name | "ShowWindowFlags" |
|---|
|
| offset | "0xB0" |
|---|
| size | 16 |
|---|
| type | "UNICODE_STRING" |
|---|
| name | "WindowTitle" |
|---|
|
| offset | "0xC0" |
|---|
| size | 16 |
|---|
| type | "UNICODE_STRING" |
|---|
| name | "DesktopInfo" |
|---|
|
| offset | "0xD0" |
|---|
| size | 16 |
|---|
| type | "UNICODE_STRING" |
|---|
| name | "ShellInfo" |
|---|
|
| offset | "0xE0" |
|---|
| size | 16 |
|---|
| type | "UNICODE_STRING" |
|---|
| name | "RuntimeData" |
|---|
|
| offset | "0xF0" |
|---|
| size | 768 |
|---|
| type | "RTL_DRIVE_LETTER_CURDIR[32]" |
|---|
| name | "CurrentDirectories" |
|---|
|
| offset | "0x3F0" |
|---|
| size | 8 |
|---|
| type | "ULONG_PTR" |
|---|
| name | "EnvironmentSize" |
|---|
|
| offset | "0x3F8" |
|---|
| size | 8 |
|---|
| type | "ULONG_PTR" |
|---|
| name | "EnvironmentVersion" |
|---|
|
|
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "struct _RTL_USER_PROCESS_PARAMETERS, _CURDIR; offsets from field sizes" |
|---|
| repo | "https://github.com/winsiderss/phnt" |
|---|
| commit | "53fbbdc5b5d2b08761db1c7b26bfa8c820924356" |
|---|
| path | "ntrtl.h" |
|---|
| lines | "3985-4055" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "RTL_USER_PROCESS_PARAMETERS x64" |
|---|
| topic | "Platform:Windows/PEB and TEB" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-18T10:18:36.528Z" |
|---|
| verifications | |
|---|