Type Alias WSLPluginAPI_ExecuteBinaryInDistribution

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

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

Aliased Type§

pub enum WSLPluginAPI_ExecuteBinaryInDistribution {
    None,
    Some(unsafe extern "C" fn(u32, *const GUID, PCSTR, *mut PCSTR, *mut SOCKET) -> HRESULT),
}

Variants§

§1.0.0

None

No value.

§1.0.0

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

Some value of type T.