Skip to main content

WSLPluginAPI_ExecuteBinary

Type Alias WSLPluginAPI_ExecuteBinary 

Source
pub type WSLPluginAPI_ExecuteBinary = Option<unsafe extern "C" fn(Session: WSLSessionId, Path: PCSTR, Arguments: *mut PCSTR, Socket: *mut SOCKET) -> HRESULT>;
Expand description

Execute a program in the root namespace. On success, ‘Socket’ is connected to stdin & stdout (stderr goes to dmesg) // ‘Arguments’ is expected to be NULL terminated

Aliased Type§

pub enum WSLPluginAPI_ExecuteBinary {
    None,
    Some(unsafe extern "C" fn(u32, *const u8, *mut *const u8, *mut usize) -> i32),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(u32, *const u8, *mut *const u8, *mut usize) -> i32)

Some value of type T.