aboutsummaryrefslogtreecommitdiff
path: root/std/os/windows
diff options
context:
space:
mode:
Diffstat (limited to 'std/os/windows')
-rw-r--r--std/os/windows/kernel32.zig14
1 files changed, 8 insertions, 6 deletions
diff --git a/std/os/windows/kernel32.zig b/std/os/windows/kernel32.zig
index 7a6126133a..66b9552c5f 100644
--- a/std/os/windows/kernel32.zig
+++ b/std/os/windows/kernel32.zig
@@ -253,15 +253,17 @@ pub const RTL_CRITICAL_SECTION = extern struct {
};
pub const CRITICAL_SECTION = RTL_CRITICAL_SECTION;
+pub const INIT_ONCE = RTL_RUN_ONCE;
+pub const INIT_ONCE_STATIC_INIT = RTL_RUN_ONCE_INIT;
-pub extern "kernel32" stdcallcc fn InitOnceExecuteOnce(InitOnce: *RTL_RUN_ONCE, InitFn: PINIT_ONCE_FN, Context: ?PVOID, Parameter: ?LPVOID) BOOL;
+pub extern "kernel32" stdcallcc fn InitOnceExecuteOnce(InitOnce: *INIT_ONCE, InitFn: INIT_ONCE_FN, Parameter: ?*c_void, Context: ?*c_void) BOOL;
-pub const PINIT_ONCE_FN = ?extern fn(InitOnce: *RTL_RUN_ONCE, Parameter: ?PVOID, Context: ?PVOID) BOOL;
+pub const INIT_ONCE_FN = extern fn(InitOnce: *INIT_ONCE, Parameter: ?*c_void, Context: ?*c_void) BOOL;
pub const RTL_RUN_ONCE = extern struct {
- Ptr: ?PVOID,
+ Ptr: ?*c_void,
};
-pub const INIT_ONCE_STATIC_INIT = RTL_RUN_ONCE {
- .Ptr = null,
-}; \ No newline at end of file
+pub const RTL_RUN_ONCE_INIT = RTL_RUN_ONCE {
+ .Ptr = null,
+};