Zig 0.17.0-dev (Split by item)

Shortcut keys
?
Show these tips
S
Focus search field
Esc
Clear focus & close tips
U
Jump to source code
↑
Move up in search results
↓
Move down in search results
↵
Go to active search result
This is an example of documentation generated by ZigDoc, an alternative to Zig's built-in Auto Doc feature. See also examples in other modes/formats. The project being documented here (as the example) is the Zig standard library. Public Function

getSystemDirectoryWtf16Le

Public Function
std.os.windows.getSystemDirectoryWtf16Le
pub fn getSystemDirectoryWtf16Le() [:0]const u16

Returns the path to the system directory, typically "C:\WINDOWS\System32".

Equivalent to GetSystemDirectoryW in kernel32.

File

os/windows.zig:5978
5978
5979
5980
5981
5982
5983
pub 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();
}