Crate wslpluginapi_sys

Source

Structs§

WSLDistributionInformation
WSLPluginAPIV1
WSLPluginHooksV1
WSLSessionInformation
WSLVersion
WSLVmCreationSettings
WslOfflineDistributionInformation

Constants§

WSLUserConfiguration_None
WSLUserConfiguration_WSLUserConfigurationCustomKernel
WSLUserConfiguration_WSLUserConfigurationCustomKernelCommandLine
WSL_E_PLUGIN_REQUIRES_UPDATE

Functions§

require_version
Ensures the WSL Plugin API version meets the minimum required version.

Type Aliases§

WSLPluginAPI_EntryPointV1
WSLPluginAPI_ExecuteBinary
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
WSLPluginAPI_ExecuteBinaryInDistribution
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
WSLPluginAPI_MountFolder
Create plan9 mount between Windows & Linux
WSLPluginAPI_OnDistributionRegistered
Called when a distribution is registered or unregisteed. Returning failure will NOT cause the operation to fail.
WSLPluginAPI_OnDistributionStarted
Called when a distribution has started. ‘Session’ and ‘Distribution’ is only valid during while the call is in progress.
WSLPluginAPI_OnDistributionStopping
Called when a distribution is about to stop. ‘Session’ and ‘Distribution’ is only valid during while the call is in progress. Note: It’s possible that stopping a distribution fails (for instance if a file is in use). In this case, it’s possible for this notification to be called multiple times for the same distribution.
WSLPluginAPI_OnVMStarted
Called when the VM has started. ‘Session’ and ‘UserSettings’ are only valid during while the call is in progress.
WSLPluginAPI_OnVMStopping
Called when the VM is about to stop. ‘Session’ is only valid during while the call is in progress.
WSLPluginAPI_PluginError
Set the error message to display to the user if the VM or distribution creation fails. Must be called synchronously in either OnVMStarted() or OnDistributionStarted().
WSLSessionId
WSLUserConfiguration