mirror of
https://github.com/ziglang/zig.git
synced 2025-12-06 14:23:09 +00:00
16 lines
443 B
Zig
16 lines
443 B
Zig
const std = @import("../../std.zig");
|
|
const windows = std.os.windows;
|
|
const WINAPI = windows.WINAPI;
|
|
const KNOWNFOLDERID = windows.KNOWNFOLDERID;
|
|
const DWORD = windows.DWORD;
|
|
const HANDLE = windows.HANDLE;
|
|
const WCHAR = windows.WCHAR;
|
|
const HRESULT = windows.HRESULT;
|
|
|
|
pub extern "shell32" fn SHGetKnownFolderPath(
|
|
rfid: *const KNOWNFOLDERID,
|
|
dwFlags: DWORD,
|
|
hToken: ?HANDLE,
|
|
ppszPath: *[*:0]WCHAR,
|
|
) callconv(WINAPI) HRESULT;
|