WslLaunchInteractive function wslapi
Launches an interactive Windows Subsystem for Linux (WSL) process in the context of a particular distribution.This differs from WslLaunch in that the end user will be able to interact with the newly-created process.
HRESULT WslLaunchInteractive(
_In_ PCWSTR distributionName,
_In_opt_ command,
_In_ BOOL useCurrentWorkingDirectory,
_Out_ DWORD *exitCode
);
Implementation
int WslLaunchInteractive(
Pointer<Utf16> distributionName,
Pointer<Utf16> command,
int useCurrentWorkingDirectory,
Pointer<Uint32> exitCode) =>
_WslLaunchInteractive(
distributionName, command, useCurrentWorkingDirectory, exitCode);