]>
Commit | Line | Data |
---|---|---|
5e7ed085 FG |
1 | #[link(name = "windows")] |
2 | extern "system" { | |
04454e1e FG |
3 | #[doc = "*Required features: `\"Win32_System_SubsystemForLinux\"`*"] |
4 | pub fn WslConfigureDistribution(distributionname: ::windows_sys::core::PCWSTR, defaultuid: u32, wsldistributionflags: WSL_DISTRIBUTION_FLAGS) -> ::windows_sys::core::HRESULT; | |
5 | #[doc = "*Required features: `\"Win32_System_SubsystemForLinux\"`*"] | |
6 | pub fn WslGetDistributionConfiguration(distributionname: ::windows_sys::core::PCWSTR, distributionversion: *mut u32, defaultuid: *mut u32, wsldistributionflags: *mut WSL_DISTRIBUTION_FLAGS, defaultenvironmentvariables: *mut *mut ::windows_sys::core::PSTR, defaultenvironmentvariablecount: *mut u32) -> ::windows_sys::core::HRESULT; | |
7 | #[doc = "*Required features: `\"Win32_System_SubsystemForLinux\"`, `\"Win32_Foundation\"`*"] | |
5e7ed085 | 8 | #[cfg(feature = "Win32_Foundation")] |
04454e1e FG |
9 | pub fn WslIsDistributionRegistered(distributionname: ::windows_sys::core::PCWSTR) -> super::super::Foundation::BOOL; |
10 | #[doc = "*Required features: `\"Win32_System_SubsystemForLinux\"`, `\"Win32_Foundation\"`*"] | |
5e7ed085 | 11 | #[cfg(feature = "Win32_Foundation")] |
04454e1e FG |
12 | pub fn WslLaunch(distributionname: ::windows_sys::core::PCWSTR, command: ::windows_sys::core::PCWSTR, usecurrentworkingdirectory: super::super::Foundation::BOOL, stdin: super::super::Foundation::HANDLE, stdout: super::super::Foundation::HANDLE, stderr: super::super::Foundation::HANDLE, process: *mut super::super::Foundation::HANDLE) -> ::windows_sys::core::HRESULT; |
13 | #[doc = "*Required features: `\"Win32_System_SubsystemForLinux\"`, `\"Win32_Foundation\"`*"] | |
5e7ed085 | 14 | #[cfg(feature = "Win32_Foundation")] |
04454e1e FG |
15 | pub fn WslLaunchInteractive(distributionname: ::windows_sys::core::PCWSTR, command: ::windows_sys::core::PCWSTR, usecurrentworkingdirectory: super::super::Foundation::BOOL, exitcode: *mut u32) -> ::windows_sys::core::HRESULT; |
16 | #[doc = "*Required features: `\"Win32_System_SubsystemForLinux\"`*"] | |
17 | pub fn WslRegisterDistribution(distributionname: ::windows_sys::core::PCWSTR, targzfilename: ::windows_sys::core::PCWSTR) -> ::windows_sys::core::HRESULT; | |
18 | #[doc = "*Required features: `\"Win32_System_SubsystemForLinux\"`*"] | |
19 | pub fn WslUnregisterDistribution(distributionname: ::windows_sys::core::PCWSTR) -> ::windows_sys::core::HRESULT; | |
5e7ed085 | 20 | } |
04454e1e | 21 | #[doc = "*Required features: `\"Win32_System_SubsystemForLinux\"`*"] |
5e7ed085 | 22 | pub type WSL_DISTRIBUTION_FLAGS = u32; |
04454e1e | 23 | #[doc = "*Required features: `\"Win32_System_SubsystemForLinux\"`*"] |
5e7ed085 | 24 | pub const WSL_DISTRIBUTION_FLAGS_NONE: WSL_DISTRIBUTION_FLAGS = 0u32; |
04454e1e | 25 | #[doc = "*Required features: `\"Win32_System_SubsystemForLinux\"`*"] |
5e7ed085 | 26 | pub const WSL_DISTRIBUTION_FLAGS_ENABLE_INTEROP: WSL_DISTRIBUTION_FLAGS = 1u32; |
04454e1e | 27 | #[doc = "*Required features: `\"Win32_System_SubsystemForLinux\"`*"] |
5e7ed085 | 28 | pub const WSL_DISTRIBUTION_FLAGS_APPEND_NT_PATH: WSL_DISTRIBUTION_FLAGS = 2u32; |
04454e1e | 29 | #[doc = "*Required features: `\"Win32_System_SubsystemForLinux\"`*"] |
5e7ed085 | 30 | pub const WSL_DISTRIBUTION_FLAGS_ENABLE_DRIVE_MOUNTING: WSL_DISTRIBUTION_FLAGS = 4u32; |