]> git.proxmox.com Git - rustc.git/blame - vendor/windows-sys/src/Windows/Win32/System/HostComputeSystem/mod.rs
New upstream version 1.70.0+dfsg1
[rustc.git] / vendor / windows-sys / src / Windows / Win32 / System / HostComputeSystem / mod.rs
CommitLineData
9c376795
FG
1::windows_sys::core::link ! ( "computestorage.dll""system" #[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"] fn HcsAttachLayerStorageFilter ( layerpath : :: windows_sys::core::PCWSTR , layerdata : :: windows_sys::core::PCWSTR ) -> :: windows_sys::core::HRESULT );
2::windows_sys::core::link ! ( "computecore.dll""system" #[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"] fn HcsCancelOperation ( operation : HCS_OPERATION ) -> :: windows_sys::core::HRESULT );
3::windows_sys::core::link ! ( "computecore.dll""system" #[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"] fn HcsCloseComputeSystem ( computesystem : HCS_SYSTEM ) -> ( ) );
4::windows_sys::core::link ! ( "computecore.dll""system" #[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"] fn HcsCloseOperation ( operation : HCS_OPERATION ) -> ( ) );
5::windows_sys::core::link ! ( "computecore.dll""system" #[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"] fn HcsCloseProcess ( process : HCS_PROCESS ) -> ( ) );
6::windows_sys::core::link ! ( "computecore.dll""system" #[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"] fn HcsCrashComputeSystem ( computesystem : HCS_SYSTEM , operation : HCS_OPERATION , options : :: windows_sys::core::PCWSTR ) -> :: windows_sys::core::HRESULT );
7#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))]
8::windows_sys::core::link ! ( "computecore.dll""system" #[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] fn HcsCreateComputeSystem ( id : :: windows_sys::core::PCWSTR , configuration : :: windows_sys::core::PCWSTR , operation : HCS_OPERATION , securitydescriptor : *const super::super::Security:: SECURITY_DESCRIPTOR , computesystem : *mut HCS_SYSTEM ) -> :: windows_sys::core::HRESULT );
9::windows_sys::core::link ! ( "computecore.dll""system" #[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"] fn HcsCreateComputeSystemInNamespace ( idnamespace : :: windows_sys::core::PCWSTR , id : :: windows_sys::core::PCWSTR , configuration : :: windows_sys::core::PCWSTR , operation : HCS_OPERATION , options : *const HCS_CREATE_OPTIONS , computesystem : *mut HCS_SYSTEM ) -> :: windows_sys::core::HRESULT );
10::windows_sys::core::link ! ( "computecore.dll""system" #[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"] fn HcsCreateEmptyGuestStateFile ( gueststatefilepath : :: windows_sys::core::PCWSTR ) -> :: windows_sys::core::HRESULT );
11::windows_sys::core::link ! ( "computecore.dll""system" #[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"] fn HcsCreateEmptyRuntimeStateFile ( runtimestatefilepath : :: windows_sys::core::PCWSTR ) -> :: windows_sys::core::HRESULT );
12::windows_sys::core::link ! ( "computecore.dll""system" #[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"] fn HcsCreateOperation ( context : *const ::core::ffi::c_void , callback : HCS_OPERATION_COMPLETION ) -> HCS_OPERATION );
13#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))]
14::windows_sys::core::link ! ( "computecore.dll""system" #[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] fn HcsCreateProcess ( computesystem : HCS_SYSTEM , processparameters : :: windows_sys::core::PCWSTR , operation : HCS_OPERATION , securitydescriptor : *const super::super::Security:: SECURITY_DESCRIPTOR , process : *mut HCS_PROCESS ) -> :: windows_sys::core::HRESULT );
15::windows_sys::core::link ! ( "computestorage.dll""system" #[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"] fn HcsDestroyLayer ( layerpath : :: windows_sys::core::PCWSTR ) -> :: windows_sys::core::HRESULT );
16::windows_sys::core::link ! ( "computestorage.dll""system" #[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"] fn HcsDetachLayerStorageFilter ( layerpath : :: windows_sys::core::PCWSTR ) -> :: windows_sys::core::HRESULT );
17::windows_sys::core::link ! ( "computecore.dll""system" #[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"] fn HcsEnumerateComputeSystems ( query : :: windows_sys::core::PCWSTR , operation : HCS_OPERATION ) -> :: windows_sys::core::HRESULT );
18::windows_sys::core::link ! ( "computecore.dll""system" #[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"] fn HcsEnumerateComputeSystemsInNamespace ( idnamespace : :: windows_sys::core::PCWSTR , query : :: windows_sys::core::PCWSTR , operation : HCS_OPERATION ) -> :: windows_sys::core::HRESULT );
19::windows_sys::core::link ! ( "computestorage.dll""system" #[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"] fn HcsExportLayer ( layerpath : :: windows_sys::core::PCWSTR , exportfolderpath : :: windows_sys::core::PCWSTR , layerdata : :: windows_sys::core::PCWSTR , options : :: windows_sys::core::PCWSTR ) -> :: windows_sys::core::HRESULT );
20::windows_sys::core::link ! ( "computestorage.dll""system" #[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"] fn HcsExportLegacyWritableLayer ( writablelayermountpath : :: windows_sys::core::PCWSTR , writablelayerfolderpath : :: windows_sys::core::PCWSTR , exportfolderpath : :: windows_sys::core::PCWSTR , layerdata : :: windows_sys::core::PCWSTR ) -> :: windows_sys::core::HRESULT );
21#[cfg(feature = "Win32_Foundation")]
22::windows_sys::core::link ! ( "computestorage.dll""system" #[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`, `\"Win32_Foundation\"`*"] fn HcsFormatWritableLayerVhd ( vhdhandle : super::super::Foundation:: HANDLE ) -> :: windows_sys::core::HRESULT );
23::windows_sys::core::link ! ( "computecore.dll""system" #[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"] fn HcsGetComputeSystemFromOperation ( operation : HCS_OPERATION ) -> HCS_SYSTEM );
24::windows_sys::core::link ! ( "computecore.dll""system" #[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"] fn HcsGetComputeSystemProperties ( computesystem : HCS_SYSTEM , operation : HCS_OPERATION , propertyquery : :: windows_sys::core::PCWSTR ) -> :: windows_sys::core::HRESULT );
25#[cfg(feature = "Win32_Foundation")]
26::windows_sys::core::link ! ( "computestorage.dll""system" #[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`, `\"Win32_Foundation\"`*"] fn HcsGetLayerVhdMountPath ( vhdhandle : super::super::Foundation:: HANDLE , mountpath : *mut :: windows_sys::core::PWSTR ) -> :: windows_sys::core::HRESULT );
27::windows_sys::core::link ! ( "computecore.dll""system" #[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"] fn HcsGetOperationContext ( operation : HCS_OPERATION ) -> *mut ::core::ffi::c_void );
28::windows_sys::core::link ! ( "computecore.dll""system" #[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"] fn HcsGetOperationId ( operation : HCS_OPERATION ) -> u64 );
29::windows_sys::core::link ! ( "computecore.dll""system" #[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"] fn HcsGetOperationResult ( operation : HCS_OPERATION , resultdocument : *mut :: windows_sys::core::PWSTR ) -> :: windows_sys::core::HRESULT );
30#[cfg(feature = "Win32_Foundation")]
31::windows_sys::core::link ! ( "computecore.dll""system" #[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`, `\"Win32_Foundation\"`*"] fn HcsGetOperationResultAndProcessInfo ( operation : HCS_OPERATION , processinformation : *mut HCS_PROCESS_INFORMATION , resultdocument : *mut :: windows_sys::core::PWSTR ) -> :: windows_sys::core::HRESULT );
32::windows_sys::core::link ! ( "computecore.dll""system" #[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"] fn HcsGetOperationType ( operation : HCS_OPERATION ) -> HCS_OPERATION_TYPE );
33::windows_sys::core::link ! ( "computecore.dll""system" #[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"] fn HcsGetProcessFromOperation ( operation : HCS_OPERATION ) -> HCS_PROCESS );
34::windows_sys::core::link ! ( "computecore.dll""system" #[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"] fn HcsGetProcessInfo ( process : HCS_PROCESS , operation : HCS_OPERATION ) -> :: windows_sys::core::HRESULT );
35::windows_sys::core::link ! ( "computecore.dll""system" #[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"] fn HcsGetProcessProperties ( process : HCS_PROCESS , operation : HCS_OPERATION , propertyquery : :: windows_sys::core::PCWSTR ) -> :: windows_sys::core::HRESULT );
36::windows_sys::core::link ! ( "computecore.dll""system" #[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"] fn HcsGetProcessorCompatibilityFromSavedState ( runtimefilename : :: windows_sys::core::PCWSTR , processorfeaturesstring : *mut :: windows_sys::core::PWSTR ) -> :: windows_sys::core::HRESULT );
37::windows_sys::core::link ! ( "computecore.dll""system" #[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"] fn HcsGetServiceProperties ( propertyquery : :: windows_sys::core::PCWSTR , result : *mut :: windows_sys::core::PWSTR ) -> :: windows_sys::core::HRESULT );
38::windows_sys::core::link ! ( "computecore.dll""system" #[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"] fn HcsGrantVmAccess ( vmid : :: windows_sys::core::PCWSTR , filepath : :: windows_sys::core::PCWSTR ) -> :: windows_sys::core::HRESULT );
39::windows_sys::core::link ! ( "computecore.dll""system" #[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"] fn HcsGrantVmGroupAccess ( filepath : :: windows_sys::core::PCWSTR ) -> :: windows_sys::core::HRESULT );
40::windows_sys::core::link ! ( "computestorage.dll""system" #[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"] fn HcsImportLayer ( layerpath : :: windows_sys::core::PCWSTR , sourcefolderpath : :: windows_sys::core::PCWSTR , layerdata : :: windows_sys::core::PCWSTR ) -> :: windows_sys::core::HRESULT );
41::windows_sys::core::link ! ( "computestorage.dll""system" #[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"] fn HcsInitializeLegacyWritableLayer ( writablelayermountpath : :: windows_sys::core::PCWSTR , writablelayerfolderpath : :: windows_sys::core::PCWSTR , layerdata : :: windows_sys::core::PCWSTR , options : :: windows_sys::core::PCWSTR ) -> :: windows_sys::core::HRESULT );
42::windows_sys::core::link ! ( "computestorage.dll""system" #[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"] fn HcsInitializeWritableLayer ( writablelayerpath : :: windows_sys::core::PCWSTR , layerdata : :: windows_sys::core::PCWSTR , options : :: windows_sys::core::PCWSTR ) -> :: windows_sys::core::HRESULT );
43#[cfg(feature = "Win32_Foundation")]
44::windows_sys::core::link ! ( "computecore.dll""system" #[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`, `\"Win32_Foundation\"`*"] fn HcsModifyComputeSystem ( computesystem : HCS_SYSTEM , operation : HCS_OPERATION , configuration : :: windows_sys::core::PCWSTR , identity : super::super::Foundation:: HANDLE ) -> :: windows_sys::core::HRESULT );
45::windows_sys::core::link ! ( "computecore.dll""system" #[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"] fn HcsModifyProcess ( process : HCS_PROCESS , operation : HCS_OPERATION , settings : :: windows_sys::core::PCWSTR ) -> :: windows_sys::core::HRESULT );
46::windows_sys::core::link ! ( "computecore.dll""system" #[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"] fn HcsModifyServiceSettings ( settings : :: windows_sys::core::PCWSTR , result : *mut :: windows_sys::core::PWSTR ) -> :: windows_sys::core::HRESULT );
47::windows_sys::core::link ! ( "computecore.dll""system" #[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"] fn HcsOpenComputeSystem ( id : :: windows_sys::core::PCWSTR , requestedaccess : u32 , computesystem : *mut HCS_SYSTEM ) -> :: windows_sys::core::HRESULT );
48::windows_sys::core::link ! ( "computecore.dll""system" #[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"] fn HcsOpenComputeSystemInNamespace ( idnamespace : :: windows_sys::core::PCWSTR , id : :: windows_sys::core::PCWSTR , requestedaccess : u32 , computesystem : *mut HCS_SYSTEM ) -> :: windows_sys::core::HRESULT );
49::windows_sys::core::link ! ( "computecore.dll""system" #[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"] fn HcsOpenProcess ( computesystem : HCS_SYSTEM , processid : u32 , requestedaccess : u32 , process : *mut HCS_PROCESS ) -> :: windows_sys::core::HRESULT );
50::windows_sys::core::link ! ( "computecore.dll""system" #[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"] fn HcsPauseComputeSystem ( computesystem : HCS_SYSTEM , operation : HCS_OPERATION , options : :: windows_sys::core::PCWSTR ) -> :: windows_sys::core::HRESULT );
51::windows_sys::core::link ! ( "computecore.dll""system" #[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"] fn HcsResumeComputeSystem ( computesystem : HCS_SYSTEM , operation : HCS_OPERATION , options : :: windows_sys::core::PCWSTR ) -> :: windows_sys::core::HRESULT );
52::windows_sys::core::link ! ( "computecore.dll""system" #[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"] fn HcsRevokeVmAccess ( vmid : :: windows_sys::core::PCWSTR , filepath : :: windows_sys::core::PCWSTR ) -> :: windows_sys::core::HRESULT );
53::windows_sys::core::link ! ( "computecore.dll""system" #[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"] fn HcsRevokeVmGroupAccess ( filepath : :: windows_sys::core::PCWSTR ) -> :: windows_sys::core::HRESULT );
54::windows_sys::core::link ! ( "computecore.dll""system" #[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"] fn HcsSaveComputeSystem ( computesystem : HCS_SYSTEM , operation : HCS_OPERATION , options : :: windows_sys::core::PCWSTR ) -> :: windows_sys::core::HRESULT );
55::windows_sys::core::link ! ( "computecore.dll""system" #[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"] fn HcsSetComputeSystemCallback ( computesystem : HCS_SYSTEM , callbackoptions : HCS_EVENT_OPTIONS , context : *const ::core::ffi::c_void , callback : HCS_EVENT_CALLBACK ) -> :: windows_sys::core::HRESULT );
56::windows_sys::core::link ! ( "computecore.dll""system" #[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"] fn HcsSetOperationCallback ( operation : HCS_OPERATION , context : *const ::core::ffi::c_void , callback : HCS_OPERATION_COMPLETION ) -> :: windows_sys::core::HRESULT );
57::windows_sys::core::link ! ( "computecore.dll""system" #[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"] fn HcsSetOperationContext ( operation : HCS_OPERATION , context : *const ::core::ffi::c_void ) -> :: windows_sys::core::HRESULT );
58::windows_sys::core::link ! ( "computecore.dll""system" #[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"] fn HcsSetProcessCallback ( process : HCS_PROCESS , callbackoptions : HCS_EVENT_OPTIONS , context : *const ::core::ffi::c_void , callback : HCS_EVENT_CALLBACK ) -> :: windows_sys::core::HRESULT );
59#[cfg(feature = "Win32_Foundation")]
60::windows_sys::core::link ! ( "computestorage.dll""system" #[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`, `\"Win32_Foundation\"`*"] fn HcsSetupBaseOSLayer ( layerpath : :: windows_sys::core::PCWSTR , vhdhandle : super::super::Foundation:: HANDLE , options : :: windows_sys::core::PCWSTR ) -> :: windows_sys::core::HRESULT );
61::windows_sys::core::link ! ( "computestorage.dll""system" #[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"] fn HcsSetupBaseOSVolume ( layerpath : :: windows_sys::core::PCWSTR , volumepath : :: windows_sys::core::PCWSTR , options : :: windows_sys::core::PCWSTR ) -> :: windows_sys::core::HRESULT );
62::windows_sys::core::link ! ( "computecore.dll""system" #[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"] fn HcsShutDownComputeSystem ( computesystem : HCS_SYSTEM , operation : HCS_OPERATION , options : :: windows_sys::core::PCWSTR ) -> :: windows_sys::core::HRESULT );
63::windows_sys::core::link ! ( "computecore.dll""system" #[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"] fn HcsSignalProcess ( process : HCS_PROCESS , operation : HCS_OPERATION , options : :: windows_sys::core::PCWSTR ) -> :: windows_sys::core::HRESULT );
64::windows_sys::core::link ! ( "computecore.dll""system" #[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"] fn HcsStartComputeSystem ( computesystem : HCS_SYSTEM , operation : HCS_OPERATION , options : :: windows_sys::core::PCWSTR ) -> :: windows_sys::core::HRESULT );
65::windows_sys::core::link ! ( "computecore.dll""system" #[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"] fn HcsSubmitWerReport ( settings : :: windows_sys::core::PCWSTR ) -> :: windows_sys::core::HRESULT );
66::windows_sys::core::link ! ( "computecore.dll""system" #[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"] fn HcsTerminateComputeSystem ( computesystem : HCS_SYSTEM , operation : HCS_OPERATION , options : :: windows_sys::core::PCWSTR ) -> :: windows_sys::core::HRESULT );
67::windows_sys::core::link ! ( "computecore.dll""system" #[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"] fn HcsTerminateProcess ( process : HCS_PROCESS , operation : HCS_OPERATION , options : :: windows_sys::core::PCWSTR ) -> :: windows_sys::core::HRESULT );
68::windows_sys::core::link ! ( "computecore.dll""system" #[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"] fn HcsWaitForComputeSystemExit ( computesystem : HCS_SYSTEM , timeoutms : u32 , result : *mut :: windows_sys::core::PWSTR ) -> :: windows_sys::core::HRESULT );
69::windows_sys::core::link ! ( "computecore.dll""system" #[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"] fn HcsWaitForOperationResult ( operation : HCS_OPERATION , timeoutms : u32 , resultdocument : *mut :: windows_sys::core::PWSTR ) -> :: windows_sys::core::HRESULT );
70#[cfg(feature = "Win32_Foundation")]
71::windows_sys::core::link ! ( "computecore.dll""system" #[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`, `\"Win32_Foundation\"`*"] fn HcsWaitForOperationResultAndProcessInfo ( operation : HCS_OPERATION , timeoutms : u32 , processinformation : *mut HCS_PROCESS_INFORMATION , resultdocument : *mut :: windows_sys::core::PWSTR ) -> :: windows_sys::core::HRESULT );
72::windows_sys::core::link ! ( "computecore.dll""system" #[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"] fn HcsWaitForProcessExit ( computesystem : HCS_PROCESS , timeoutms : u32 , result : *mut :: windows_sys::core::PWSTR ) -> :: windows_sys::core::HRESULT );
04454e1e 73#[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"]
5e7ed085 74pub type HCS_CREATE_OPTIONS = i32;
04454e1e 75#[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"]
5e7ed085 76pub const HcsCreateOptions_1: HCS_CREATE_OPTIONS = 65536i32;
04454e1e 77#[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"]
5e7ed085 78pub type HCS_EVENT_OPTIONS = u32;
04454e1e 79#[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"]
5e7ed085 80pub const HcsEventOptionNone: HCS_EVENT_OPTIONS = 0u32;
04454e1e 81#[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"]
5e7ed085 82pub const HcsEventOptionEnableOperationCallbacks: HCS_EVENT_OPTIONS = 1u32;
04454e1e 83#[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"]
5e7ed085 84pub type HCS_EVENT_TYPE = i32;
04454e1e 85#[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"]
5e7ed085 86pub const HcsEventInvalid: HCS_EVENT_TYPE = 0i32;
04454e1e 87#[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"]
5e7ed085 88pub const HcsEventSystemExited: HCS_EVENT_TYPE = 1i32;
04454e1e 89#[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"]
5e7ed085 90pub const HcsEventSystemCrashInitiated: HCS_EVENT_TYPE = 2i32;
04454e1e 91#[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"]
5e7ed085 92pub const HcsEventSystemCrashReport: HCS_EVENT_TYPE = 3i32;
04454e1e 93#[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"]
5e7ed085 94pub const HcsEventSystemRdpEnhancedModeStateChanged: HCS_EVENT_TYPE = 4i32;
04454e1e 95#[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"]
5e7ed085 96pub const HcsEventSystemSiloJobCreated: HCS_EVENT_TYPE = 5i32;
04454e1e 97#[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"]
5e7ed085 98pub const HcsEventSystemGuestConnectionClosed: HCS_EVENT_TYPE = 6i32;
04454e1e 99#[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"]
5e7ed085 100pub const HcsEventProcessExited: HCS_EVENT_TYPE = 65536i32;
04454e1e 101#[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"]
5e7ed085 102pub const HcsEventOperationCallback: HCS_EVENT_TYPE = 16777216i32;
04454e1e 103#[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"]
5e7ed085 104pub const HcsEventServiceDisconnect: HCS_EVENT_TYPE = 33554432i32;
04454e1e 105#[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"]
5e7ed085 106pub type HCS_NOTIFICATIONS = i32;
04454e1e 107#[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"]
5e7ed085 108pub const HcsNotificationInvalid: HCS_NOTIFICATIONS = 0i32;
04454e1e 109#[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"]
5e7ed085 110pub const HcsNotificationSystemExited: HCS_NOTIFICATIONS = 1i32;
04454e1e 111#[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"]
5e7ed085 112pub const HcsNotificationSystemCreateCompleted: HCS_NOTIFICATIONS = 2i32;
04454e1e 113#[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"]
5e7ed085 114pub const HcsNotificationSystemStartCompleted: HCS_NOTIFICATIONS = 3i32;
04454e1e 115#[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"]
5e7ed085 116pub const HcsNotificationSystemPauseCompleted: HCS_NOTIFICATIONS = 4i32;
04454e1e 117#[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"]
5e7ed085 118pub const HcsNotificationSystemResumeCompleted: HCS_NOTIFICATIONS = 5i32;
04454e1e 119#[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"]
5e7ed085 120pub const HcsNotificationSystemCrashReport: HCS_NOTIFICATIONS = 6i32;
04454e1e 121#[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"]
5e7ed085 122pub const HcsNotificationSystemSiloJobCreated: HCS_NOTIFICATIONS = 7i32;
04454e1e 123#[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"]
5e7ed085 124pub const HcsNotificationSystemSaveCompleted: HCS_NOTIFICATIONS = 8i32;
04454e1e 125#[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"]
5e7ed085 126pub const HcsNotificationSystemRdpEnhancedModeStateChanged: HCS_NOTIFICATIONS = 9i32;
04454e1e 127#[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"]
5e7ed085 128pub const HcsNotificationSystemShutdownFailed: HCS_NOTIFICATIONS = 10i32;
04454e1e 129#[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"]
5e7ed085 130pub const HcsNotificationSystemShutdownCompleted: HCS_NOTIFICATIONS = 10i32;
04454e1e 131#[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"]
5e7ed085 132pub const HcsNotificationSystemGetPropertiesCompleted: HCS_NOTIFICATIONS = 11i32;
04454e1e 133#[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"]
5e7ed085 134pub const HcsNotificationSystemModifyCompleted: HCS_NOTIFICATIONS = 12i32;
04454e1e 135#[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"]
5e7ed085 136pub const HcsNotificationSystemCrashInitiated: HCS_NOTIFICATIONS = 13i32;
04454e1e 137#[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"]
5e7ed085 138pub const HcsNotificationSystemGuestConnectionClosed: HCS_NOTIFICATIONS = 14i32;
04454e1e 139#[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"]
5e7ed085 140pub const HcsNotificationSystemOperationCompletion: HCS_NOTIFICATIONS = 15i32;
04454e1e 141#[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"]
5e7ed085 142pub const HcsNotificationSystemPassThru: HCS_NOTIFICATIONS = 16i32;
04454e1e 143#[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"]
5e7ed085 144pub const HcsNotificationProcessExited: HCS_NOTIFICATIONS = 65536i32;
04454e1e 145#[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"]
5e7ed085 146pub const HcsNotificationServiceDisconnect: HCS_NOTIFICATIONS = 16777216i32;
04454e1e 147#[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"]
5e7ed085 148pub const HcsNotificationFlagsReserved: HCS_NOTIFICATIONS = -268435456i32;
04454e1e 149#[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"]
5e7ed085 150pub type HCS_NOTIFICATION_FLAGS = i32;
04454e1e 151#[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"]
5e7ed085 152pub const HcsNotificationFlagSuccess: HCS_NOTIFICATION_FLAGS = 0i32;
04454e1e 153#[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"]
5e7ed085 154pub const HcsNotificationFlagFailure: HCS_NOTIFICATION_FLAGS = -2147483648i32;
04454e1e 155#[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"]
5e7ed085 156pub type HCS_OPERATION_TYPE = i32;
04454e1e 157#[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"]
5e7ed085 158pub const HcsOperationTypeNone: HCS_OPERATION_TYPE = -1i32;
04454e1e 159#[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"]
5e7ed085 160pub const HcsOperationTypeEnumerate: HCS_OPERATION_TYPE = 0i32;
04454e1e 161#[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"]
5e7ed085 162pub const HcsOperationTypeCreate: HCS_OPERATION_TYPE = 1i32;
04454e1e 163#[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"]
5e7ed085 164pub const HcsOperationTypeStart: HCS_OPERATION_TYPE = 2i32;
04454e1e 165#[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"]
5e7ed085 166pub const HcsOperationTypeShutdown: HCS_OPERATION_TYPE = 3i32;
04454e1e 167#[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"]
5e7ed085 168pub const HcsOperationTypePause: HCS_OPERATION_TYPE = 4i32;
04454e1e 169#[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"]
5e7ed085 170pub const HcsOperationTypeResume: HCS_OPERATION_TYPE = 5i32;
04454e1e 171#[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"]
5e7ed085 172pub const HcsOperationTypeSave: HCS_OPERATION_TYPE = 6i32;
04454e1e 173#[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"]
5e7ed085 174pub const HcsOperationTypeTerminate: HCS_OPERATION_TYPE = 7i32;
04454e1e 175#[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"]
5e7ed085 176pub const HcsOperationTypeModify: HCS_OPERATION_TYPE = 8i32;
04454e1e 177#[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"]
5e7ed085 178pub const HcsOperationTypeGetProperties: HCS_OPERATION_TYPE = 9i32;
04454e1e 179#[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"]
5e7ed085 180pub const HcsOperationTypeCreateProcess: HCS_OPERATION_TYPE = 10i32;
04454e1e 181#[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"]
5e7ed085 182pub const HcsOperationTypeSignalProcess: HCS_OPERATION_TYPE = 11i32;
04454e1e 183#[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"]
5e7ed085 184pub const HcsOperationTypeGetProcessInfo: HCS_OPERATION_TYPE = 12i32;
04454e1e 185#[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"]
5e7ed085 186pub const HcsOperationTypeGetProcessProperties: HCS_OPERATION_TYPE = 13i32;
04454e1e 187#[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"]
5e7ed085 188pub const HcsOperationTypeModifyProcess: HCS_OPERATION_TYPE = 14i32;
04454e1e 189#[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"]
5e7ed085 190pub const HcsOperationTypeCrash: HCS_OPERATION_TYPE = 15i32;
487cf647
FG
191#[repr(C)]
192#[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"]
193#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))]
194pub struct HCS_CREATE_OPTIONS_1 {
195 pub Version: HCS_CREATE_OPTIONS,
196 pub UserToken: super::super::Foundation::HANDLE,
197 pub SecurityDescriptor: *mut super::super::Security::SECURITY_DESCRIPTOR,
198 pub CallbackOptions: HCS_EVENT_OPTIONS,
199 pub CallbackContext: *mut ::core::ffi::c_void,
200 pub Callback: HCS_EVENT_CALLBACK,
201}
202#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))]
203impl ::core::marker::Copy for HCS_CREATE_OPTIONS_1 {}
204#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))]
205impl ::core::clone::Clone for HCS_CREATE_OPTIONS_1 {
206 fn clone(&self) -> Self {
207 *self
208 }
209}
210#[repr(C)]
211#[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"]
212pub struct HCS_EVENT {
213 pub Type: HCS_EVENT_TYPE,
214 pub EventData: ::windows_sys::core::PCWSTR,
215 pub Operation: HCS_OPERATION,
216}
217impl ::core::marker::Copy for HCS_EVENT {}
218impl ::core::clone::Clone for HCS_EVENT {
219 fn clone(&self) -> Self {
220 *self
221 }
222}
223pub type HCS_OPERATION = isize;
5e7ed085
FG
224pub type HCS_PROCESS = isize;
225#[repr(C)]
04454e1e 226#[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`, `\"Win32_Foundation\"`*"]
5e7ed085
FG
227#[cfg(feature = "Win32_Foundation")]
228pub struct HCS_PROCESS_INFORMATION {
229 pub ProcessId: u32,
230 pub Reserved: u32,
231 pub StdInput: super::super::Foundation::HANDLE,
232 pub StdOutput: super::super::Foundation::HANDLE,
233 pub StdError: super::super::Foundation::HANDLE,
234}
235#[cfg(feature = "Win32_Foundation")]
236impl ::core::marker::Copy for HCS_PROCESS_INFORMATION {}
237#[cfg(feature = "Win32_Foundation")]
238impl ::core::clone::Clone for HCS_PROCESS_INFORMATION {
239 fn clone(&self) -> Self {
240 *self
241 }
242}
243pub type HCS_SYSTEM = isize;
487cf647 244#[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"]
9c376795 245pub type HCS_EVENT_CALLBACK = ::core::option::Option<unsafe extern "system" fn(event: *const HCS_EVENT, context: *const ::core::ffi::c_void) -> ()>;
487cf647 246#[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"]
9c376795 247pub type HCS_NOTIFICATION_CALLBACK = ::core::option::Option<unsafe extern "system" fn(notificationtype: u32, context: *const ::core::ffi::c_void, notificationstatus: ::windows_sys::core::HRESULT, notificationdata: ::windows_sys::core::PCWSTR) -> ()>;
487cf647 248#[doc = "*Required features: `\"Win32_System_HostComputeSystem\"`*"]
9c376795 249pub type HCS_OPERATION_COMPLETION = ::core::option::Option<unsafe extern "system" fn(operation: HCS_OPERATION, context: *const ::core::ffi::c_void) -> ()>;