Zig 0.17.0-dev (Split by item)

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 library itself.

getSystemDirectoryWtf16Le

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

Equivalent to GetSystemDirectoryW in kernel32.

windows.getSystemDirectoryWtf16Le
pub fn getSystemDirectoryWtf16Le() [:0]const u16

File

lib/std/os/windows.zig:5978

Code

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();
}