1const std = @import("../../std.zig");
2const windows = std.os.windows;
3
4const BOOL = windows.BOOL;
5const DWORD = windows.DWORD;
6const HANDLE = windows.HANDLE;
7const LPCWSTR = windows.LPCWSTR;
8const LPVOID = windows.LPVOID;
9const LPWSTR = windows.LPWSTR;
10const PROCESS = windows.PROCESS;
11const THREAD_START_ROUTINE = windows.THREAD_START_ROUTINE;
12const SECURITY_ATTRIBUTES = windows.SECURITY_ATTRIBUTES;
13const SIZE_T = windows.SIZE_T;
14const STARTUPINFOW = windows.STARTUPINFOW;
15
16pub extern "kernel32" fn CreateProcessW(
17 lpApplicationName: ?LPCWSTR,
18 lpCommandLine: ?LPWSTR,
19 lpProcessAttributes: ?*SECURITY_ATTRIBUTES,
20 lpThreadAttributes: ?*SECURITY_ATTRIBUTES,
21 bInheritHandles: BOOL,
22 dwCreationFlags: windows.CreateProcessFlags,
23 lpEnvironment: ?[*:0]const u16,
24 lpCurrentDirectory: ?LPCWSTR,
25 lpStartupInfo: *STARTUPINFOW,
26 lpProcessInformation: *PROCESS.INFORMATION,
27) callconv(.winapi) BOOL;