| 1 | const std = @import("../../std.zig"); |
| 2 | const windows = std.os.windows; |
| 3 | |
| 4 | const BOOL = windows.BOOL; |
| 5 | const DWORD = windows.DWORD; |
| 6 | const HANDLE = windows.HANDLE; |
| 7 | const LPCWSTR = windows.LPCWSTR; |
| 8 | const LPVOID = windows.LPVOID; |
| 9 | const LPWSTR = windows.LPWSTR; |
| 10 | const PROCESS = windows.PROCESS; |
| 11 | const THREAD_START_ROUTINE = windows.THREAD_START_ROUTINE; |
| 12 | const SECURITY_ATTRIBUTES = windows.SECURITY_ATTRIBUTES; |
| 13 | const SIZE_T = windows.SIZE_T; |
| 14 | const STARTUPINFOW = windows.STARTUPINFOW; |
| 15 | |
| 16 | pub 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; |