pub fn getSystemDirectoryWtf16Le() [:0]const u16 5978
5979
5980
5981
5982
5983pub fn getSystemDirectoryWtf16Le() [:0]const u16 {
const ssd: *const BASE_STATIC_SERVER_DATA = @ptrCast(@alignCast(relocateCsrssAddress(
peb().ReadOnlyStaticServerData.base_static_server_data_addr,
)));
return ssd.windows_system_directory.relocate().sliceZ();
}
Returns the path to the system directory, typically "C:\WINDOWS\System32".
Equivalent to
GetSystemDirectoryWin kernel32.