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, PCSTR, *mut PCSTR, *mut SOCKET) -> HRESULT),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(u32, PCSTR, *mut PCSTR, *mut SOCKET) -> HRESULT)

Some value of type T.