Skip to content

std.os.windows.kernel32

Standard libraryZig 0.17.0Official documentation
Sourcestd/os/windows/kernel32.zig

Source line 1

std.os.windows.kernel32.BOOL

alias

Source line 4

Alias of std.os.windows.BOOL

std.os.windows.kernel32.CreateProcessW

function

Source line 16

pub extern "kernel32" fn CreateProcessW( lpApplicationName: ?LPCWSTR, lpCommandLine: ?LPWSTR, lpProcessAttributes: ?*SECURITY_ATTRIBUTES, lpThreadAttributes: ?*SECURITY_ATTRIBUTES, bInheritHandles: BOOL, dwCreationFlags: windows.CreateProcessFlags, lpEnvironment: ?[*:0]const u16, lpCurrentDirectory: ?LPCWSTR, lpStartupInfo: *STARTUPINFOW, lpProcessInformation: *PROCESS.INFORMATION, ) callconv(.winapi) BOOL

Parameters

lpApplicationName: ?LPCWSTR
lpCommandLine: ?LPWSTR
lpProcessAttributes: ?*SECURITY_ATTRIBUTES
lpThreadAttributes: ?*SECURITY_ATTRIBUTES
bInheritHandles: BOOL
dwCreationFlags: windows.CreateProcessFlags
lpEnvironment: ?[*:0]const u16
lpCurrentDirectory: ?LPCWSTR
lpStartupInfo: *STARTUPINFOW
lpProcessInformation: *PROCESS.INFORMATION

std.os.windows.kernel32.DWORD

alias

Source line 5

Alias of std.os.windows.DWORD

std.os.windows.kernel32.HANDLE

alias

Source line 6

Alias of std.os.windows.HANDLE

std.os.windows.kernel32.LPCWSTR

alias

Source line 7

Alias of std.os.windows.LPCWSTR

std.os.windows.kernel32.LPVOID

alias

Source line 8

Alias of std.os.windows.LPVOID

std.os.windows.kernel32.LPWSTR

alias

Source line 9

Alias of std.os.windows.LPWSTR

std.os.windows.kernel32.PROCESS

alias

Source line 10

Alias of std.os.windows.PROCESS

std.os.windows.kernel32.SECURITY_ATTRIBUTES

alias

Source line 12

Alias of std.os.windows.SECURITY_ATTRIBUTES

std.os.windows.kernel32.SIZE_T

alias

Source line 13

Alias of std.os.windows.SIZE_T

std.os.windows.kernel32.STARTUPINFOW

alias

Source line 14

Alias of std.os.windows.STARTUPINFOW

std.os.windows.kernel32.std

alias

Source line 1

Alias of std

std.os.windows.kernel32.THREAD_START_ROUTINE

alias

Source line 11

Alias of std.os.windows.THREAD_START_ROUTINE

std.os.windows.kernel32.windows

alias

Source line 2

Alias of std.os.windows

Source code

std/os/windows/kernel32.zig

const std = @import("../../std.zig");
const windows = std.os.windows;

const BOOL = windows.BOOL;
const DWORD = windows.DWORD;
const HANDLE = windows.HANDLE;
const LPCWSTR = windows.LPCWSTR;
const LPVOID = windows.LPVOID;
const LPWSTR = windows.LPWSTR;
const PROCESS = windows.PROCESS;
const THREAD_START_ROUTINE = windows.THREAD_START_ROUTINE;
const SECURITY_ATTRIBUTES = windows.SECURITY_ATTRIBUTES;
const SIZE_T = windows.SIZE_T;
const STARTUPINFOW = windows.STARTUPINFOW;

pub extern "kernel32" fn CreateProcessW(
    lpApplicationName: ?LPCWSTR,
    lpCommandLine: ?LPWSTR,
    lpProcessAttributes: ?*SECURITY_ATTRIBUTES,
    lpThreadAttributes: ?*SECURITY_ATTRIBUTES,
    bInheritHandles: BOOL,
    dwCreationFlags: windows.CreateProcessFlags,
    lpEnvironment: ?[*:0]const u16,
    lpCurrentDirectory: ?LPCWSTR,
    lpStartupInfo: *STARTUPINFOW,
    lpProcessInformation: *PROCESS.INFORMATION,
) callconv(.winapi) BOOL;