Extend phnative with new native APIs for security descriptor and processor statistics handling. This adds self-relative SD conversion helpers and introduces per-processor information queries plus utility/performance delta/statistics calculations (including multi-group support and Windows-version-aware distribution parsing).
Replace heap allocations with PhAllocateStack across multiple functions in phlib/nativefile.c, add NULL checks that return STATUS_INSUFFICIENT_RESOURCES, and switch PhFree calls to PhFreeStack. Also capture and check status from NtQueryVolumeInformationFile to handle failures early, and improve PhDeleteDirectoryWin32 comments and logic (opening flags, enumeration/deletion flow, and idempotent success when the directory no longer exists). Includes minor clarity/comments around direct I/O alignment and bypass I/O usage.