Debian Codegraph @

.cargo/vendor/windows-sys/src/Windows/Win32/System/HostComputeSystem/mod.rs

raw
1 #[cfg(feature = "Win32_Foundation")]
2 ::windows_targets::link!("computecore.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn HcsAddResourceToOperation(operation : HCS_OPERATION, r#type : HCS_RESOURCE_TYPE, uri : ::windows_sys::core::PCWSTR, handle : super::super::Foundation:: HANDLE) -> ::windows_sys::core::HRESULT);
3 ::windows_targets::link!("computestorage.dll" "system" fn HcsAttachLayerStorageFilter(layerpath : ::windows_sys::core::PCWSTR, layerdata : ::windows_sys::core::PCWSTR) -> ::windows_sys::core::HRESULT);
4 ::windows_targets::link!("computecore.dll" "system" fn HcsCancelOperation(operation : HCS_OPERATION) -> ::windows_sys::core::HRESULT);
5 ::windows_targets::link!("computecore.dll" "system" fn HcsCloseComputeSystem(computesystem : HCS_SYSTEM) -> ());
6 ::windows_targets::link!("computecore.dll" "system" fn HcsCloseOperation(operation : HCS_OPERATION) -> ());
7 ::windows_targets::link!("computecore.dll" "system" fn HcsCloseProcess(process : HCS_PROCESS) -> ());
8 ::windows_targets::link!("computecore.dll" "system" fn HcsCrashComputeSystem(computesystem : HCS_SYSTEM, operation : HCS_OPERATION, options : ::windows_sys::core::PCWSTR) -> ::windows_sys::core::HRESULT);
9 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))]
10 ::windows_targets::link!("computecore.dll" "system" #[doc = "Required features: `\"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);
11 ::windows_targets::link!("computecore.dll" "system" 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);
12 ::windows_targets::link!("computecore.dll" "system" fn HcsCreateEmptyGuestStateFile(gueststatefilepath : ::windows_sys::core::PCWSTR) -> ::windows_sys::core::HRESULT);
13 ::windows_targets::link!("computecore.dll" "system" fn HcsCreateEmptyRuntimeStateFile(runtimestatefilepath : ::windows_sys::core::PCWSTR) -> ::windows_sys::core::HRESULT);
14 ::windows_targets::link!("computecore.dll" "system" fn HcsCreateOperation(context : *const ::core::ffi::c_void, callback : HCS_OPERATION_COMPLETION) -> HCS_OPERATION);
15 ::windows_targets::link!("computecore.dll" "system" fn HcsCreateOperationWithNotifications(eventtypes : HCS_OPERATION_OPTIONS, context : *const ::core::ffi::c_void, callback : HCS_EVENT_CALLBACK) -> HCS_OPERATION);
16 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))]
17 ::windows_targets::link!("computecore.dll" "system" #[doc = "Required features: `\"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);
18 ::windows_targets::link!("computestorage.dll" "system" fn HcsDestroyLayer(layerpath : ::windows_sys::core::PCWSTR) -> ::windows_sys::core::HRESULT);
19 ::windows_targets::link!("computestorage.dll" "system" fn HcsDetachLayerStorageFilter(layerpath : ::windows_sys::core::PCWSTR) -> ::windows_sys::core::HRESULT);
20 ::windows_targets::link!("computecore.dll" "system" fn HcsEnumerateComputeSystems(query : ::windows_sys::core::PCWSTR, operation : HCS_OPERATION) -> ::windows_sys::core::HRESULT);
21 ::windows_targets::link!("computecore.dll" "system" fn HcsEnumerateComputeSystemsInNamespace(idnamespace : ::windows_sys::core::PCWSTR, query : ::windows_sys::core::PCWSTR, operation : HCS_OPERATION) -> ::windows_sys::core::HRESULT);
22 ::windows_targets::link!("computestorage.dll" "system" 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);
23 ::windows_targets::link!("computestorage.dll" "system" 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);
24 #[cfg(feature = "Win32_Foundation")]
25 ::windows_targets::link!("computestorage.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn HcsFormatWritableLayerVhd(vhdhandle : super::super::Foundation:: HANDLE) -> ::windows_sys::core::HRESULT);
26 ::windows_targets::link!("computecore.dll" "system" fn HcsGetComputeSystemFromOperation(operation : HCS_OPERATION) -> HCS_SYSTEM);
27 ::windows_targets::link!("computecore.dll" "system" fn HcsGetComputeSystemProperties(computesystem : HCS_SYSTEM, operation : HCS_OPERATION, propertyquery : ::windows_sys::core::PCWSTR) -> ::windows_sys::core::HRESULT);
28 #[cfg(feature = "Win32_Foundation")]
29 ::windows_targets::link!("computestorage.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn HcsGetLayerVhdMountPath(vhdhandle : super::super::Foundation:: HANDLE, mountpath : *mut ::windows_sys::core::PWSTR) -> ::windows_sys::core::HRESULT);
30 ::windows_targets::link!("computecore.dll" "system" fn HcsGetOperationContext(operation : HCS_OPERATION) -> *mut ::core::ffi::c_void);
31 ::windows_targets::link!("computecore.dll" "system" fn HcsGetOperationId(operation : HCS_OPERATION) -> u64);
32 ::windows_targets::link!("computecore.dll" "system" fn HcsGetOperationResult(operation : HCS_OPERATION, resultdocument : *mut ::windows_sys::core::PWSTR) -> ::windows_sys::core::HRESULT);
33 #[cfg(feature = "Win32_Foundation")]
34 ::windows_targets::link!("computecore.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn HcsGetOperationResultAndProcessInfo(operation : HCS_OPERATION, processinformation : *mut HCS_PROCESS_INFORMATION, resultdocument : *mut ::windows_sys::core::PWSTR) -> ::windows_sys::core::HRESULT);
35 ::windows_targets::link!("computecore.dll" "system" fn HcsGetOperationType(operation : HCS_OPERATION) -> HCS_OPERATION_TYPE);
36 ::windows_targets::link!("computecore.dll" "system" fn HcsGetProcessFromOperation(operation : HCS_OPERATION) -> HCS_PROCESS);
37 ::windows_targets::link!("computecore.dll" "system" fn HcsGetProcessInfo(process : HCS_PROCESS, operation : HCS_OPERATION) -> ::windows_sys::core::HRESULT);
38 ::windows_targets::link!("computecore.dll" "system" fn HcsGetProcessProperties(process : HCS_PROCESS, operation : HCS_OPERATION, propertyquery : ::windows_sys::core::PCWSTR) -> ::windows_sys::core::HRESULT);
39 ::windows_targets::link!("computecore.dll" "system" fn HcsGetProcessorCompatibilityFromSavedState(runtimefilename : ::windows_sys::core::PCWSTR, processorfeaturesstring : *mut ::windows_sys::core::PCWSTR) -> ::windows_sys::core::HRESULT);
40 ::windows_targets::link!("computecore.dll" "system" fn HcsGetServiceProperties(propertyquery : ::windows_sys::core::PCWSTR, result : *mut ::windows_sys::core::PWSTR) -> ::windows_sys::core::HRESULT);
41 ::windows_targets::link!("computecore.dll" "system" fn HcsGrantVmAccess(vmid : ::windows_sys::core::PCWSTR, filepath : ::windows_sys::core::PCWSTR) -> ::windows_sys::core::HRESULT);
42 ::windows_targets::link!("computecore.dll" "system" fn HcsGrantVmGroupAccess(filepath : ::windows_sys::core::PCWSTR) -> ::windows_sys::core::HRESULT);
43 ::windows_targets::link!("computestorage.dll" "system" fn HcsImportLayer(layerpath : ::windows_sys::core::PCWSTR, sourcefolderpath : ::windows_sys::core::PCWSTR, layerdata : ::windows_sys::core::PCWSTR) -> ::windows_sys::core::HRESULT);
44 ::windows_targets::link!("computestorage.dll" "system" 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);
45 ::windows_targets::link!("computestorage.dll" "system" fn HcsInitializeWritableLayer(writablelayerpath : ::windows_sys::core::PCWSTR, layerdata : ::windows_sys::core::PCWSTR, options : ::windows_sys::core::PCWSTR) -> ::windows_sys::core::HRESULT);
46 #[cfg(feature = "Win32_Foundation")]
47 ::windows_targets::link!("computecore.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn HcsModifyComputeSystem(computesystem : HCS_SYSTEM, operation : HCS_OPERATION, configuration : ::windows_sys::core::PCWSTR, identity : super::super::Foundation:: HANDLE) -> ::windows_sys::core::HRESULT);
48 ::windows_targets::link!("computecore.dll" "system" fn HcsModifyProcess(process : HCS_PROCESS, operation : HCS_OPERATION, settings : ::windows_sys::core::PCWSTR) -> ::windows_sys::core::HRESULT);
49 ::windows_targets::link!("computecore.dll" "system" fn HcsModifyServiceSettings(settings : ::windows_sys::core::PCWSTR, result : *mut ::windows_sys::core::PWSTR) -> ::windows_sys::core::HRESULT);
50 ::windows_targets::link!("computecore.dll" "system" fn HcsOpenComputeSystem(id : ::windows_sys::core::PCWSTR, requestedaccess : u32, computesystem : *mut HCS_SYSTEM) -> ::windows_sys::core::HRESULT);
51 ::windows_targets::link!("computecore.dll" "system" fn HcsOpenComputeSystemInNamespace(idnamespace : ::windows_sys::core::PCWSTR, id : ::windows_sys::core::PCWSTR, requestedaccess : u32, computesystem : *mut HCS_SYSTEM) -> ::windows_sys::core::HRESULT);
52 ::windows_targets::link!("computecore.dll" "system" fn HcsOpenProcess(computesystem : HCS_SYSTEM, processid : u32, requestedaccess : u32, process : *mut HCS_PROCESS) -> ::windows_sys::core::HRESULT);
53 ::windows_targets::link!("computecore.dll" "system" fn HcsPauseComputeSystem(computesystem : HCS_SYSTEM, operation : HCS_OPERATION, options : ::windows_sys::core::PCWSTR) -> ::windows_sys::core::HRESULT);
54 ::windows_targets::link!("computecore.dll" "system" fn HcsResumeComputeSystem(computesystem : HCS_SYSTEM, operation : HCS_OPERATION, options : ::windows_sys::core::PCWSTR) -> ::windows_sys::core::HRESULT);
55 ::windows_targets::link!("computecore.dll" "system" fn HcsRevokeVmAccess(vmid : ::windows_sys::core::PCWSTR, filepath : ::windows_sys::core::PCWSTR) -> ::windows_sys::core::HRESULT);
56 ::windows_targets::link!("computecore.dll" "system" fn HcsRevokeVmGroupAccess(filepath : ::windows_sys::core::PCWSTR) -> ::windows_sys::core::HRESULT);
57 ::windows_targets::link!("computecore.dll" "system" fn HcsSaveComputeSystem(computesystem : HCS_SYSTEM, operation : HCS_OPERATION, options : ::windows_sys::core::PCWSTR) -> ::windows_sys::core::HRESULT);
58 ::windows_targets::link!("computecore.dll" "system" fn HcsSetComputeSystemCallback(computesystem : HCS_SYSTEM, callbackoptions : HCS_EVENT_OPTIONS, context : *const ::core::ffi::c_void, callback : HCS_EVENT_CALLBACK) -> ::windows_sys::core::HRESULT);
59 ::windows_targets::link!("computecore.dll" "system" fn HcsSetOperationCallback(operation : HCS_OPERATION, context : *const ::core::ffi::c_void, callback : HCS_OPERATION_COMPLETION) -> ::windows_sys::core::HRESULT);
60 ::windows_targets::link!("computecore.dll" "system" fn HcsSetOperationContext(operation : HCS_OPERATION, context : *const ::core::ffi::c_void) -> ::windows_sys::core::HRESULT);
61 ::windows_targets::link!("computecore.dll" "system" fn HcsSetProcessCallback(process : HCS_PROCESS, callbackoptions : HCS_EVENT_OPTIONS, context : *const ::core::ffi::c_void, callback : HCS_EVENT_CALLBACK) -> ::windows_sys::core::HRESULT);
62 #[cfg(feature = "Win32_Foundation")]
63 ::windows_targets::link!("computestorage.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn HcsSetupBaseOSLayer(layerpath : ::windows_sys::core::PCWSTR, vhdhandle : super::super::Foundation:: HANDLE, options : ::windows_sys::core::PCWSTR) -> ::windows_sys::core::HRESULT);
64 ::windows_targets::link!("computestorage.dll" "system" fn HcsSetupBaseOSVolume(layerpath : ::windows_sys::core::PCWSTR, volumepath : ::windows_sys::core::PCWSTR, options : ::windows_sys::core::PCWSTR) -> ::windows_sys::core::HRESULT);
65 ::windows_targets::link!("computecore.dll" "system" fn HcsShutDownComputeSystem(computesystem : HCS_SYSTEM, operation : HCS_OPERATION, options : ::windows_sys::core::PCWSTR) -> ::windows_sys::core::HRESULT);
66 ::windows_targets::link!("computecore.dll" "system" fn HcsSignalProcess(process : HCS_PROCESS, operation : HCS_OPERATION, options : ::windows_sys::core::PCWSTR) -> ::windows_sys::core::HRESULT);
67 ::windows_targets::link!("computecore.dll" "system" fn HcsStartComputeSystem(computesystem : HCS_SYSTEM, operation : HCS_OPERATION, options : ::windows_sys::core::PCWSTR) -> ::windows_sys::core::HRESULT);
68 ::windows_targets::link!("computecore.dll" "system" fn HcsSubmitWerReport(settings : ::windows_sys::core::PCWSTR) -> ::windows_sys::core::HRESULT);
69 ::windows_targets::link!("computecore.dll" "system" fn HcsTerminateComputeSystem(computesystem : HCS_SYSTEM, operation : HCS_OPERATION, options : ::windows_sys::core::PCWSTR) -> ::windows_sys::core::HRESULT);
70 ::windows_targets::link!("computecore.dll" "system" fn HcsTerminateProcess(process : HCS_PROCESS, operation : HCS_OPERATION, options : ::windows_sys::core::PCWSTR) -> ::windows_sys::core::HRESULT);
71 ::windows_targets::link!("computecore.dll" "system" fn HcsWaitForComputeSystemExit(computesystem : HCS_SYSTEM, timeoutms : u32, result : *mut ::windows_sys::core::PWSTR) -> ::windows_sys::core::HRESULT);
72 ::windows_targets::link!("computecore.dll" "system" fn HcsWaitForOperationResult(operation : HCS_OPERATION, timeoutms : u32, resultdocument : *mut ::windows_sys::core::PWSTR) -> ::windows_sys::core::HRESULT);
73 #[cfg(feature = "Win32_Foundation")]
74 ::windows_targets::link!("computecore.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn HcsWaitForOperationResultAndProcessInfo(operation : HCS_OPERATION, timeoutms : u32, processinformation : *mut HCS_PROCESS_INFORMATION, resultdocument : *mut ::windows_sys::core::PWSTR) -> ::windows_sys::core::HRESULT);
75 ::windows_targets::link!("computecore.dll" "system" fn HcsWaitForProcessExit(computesystem : HCS_PROCESS, timeoutms : u32, result : *mut ::windows_sys::core::PWSTR) -> ::windows_sys::core::HRESULT);
76 pub const HcsCreateOptions_1: HCS_CREATE_OPTIONS = 65536i32;
77 pub const HcsEventGroupOperationInfo: HCS_EVENT_TYPE = -1073741823i32;
78 pub const HcsEventGroupVmLifecycle: HCS_EVENT_TYPE = -2147483646i32;
79 pub const HcsEventInvalid: HCS_EVENT_TYPE = 0i32;
80 pub const HcsEventOperationCallback: HCS_EVENT_TYPE = 16777216i32;
81 pub const HcsEventOptionEnableOperationCallbacks: HCS_EVENT_OPTIONS = 1i32;
82 pub const HcsEventOptionEnableVmLifecycle: HCS_EVENT_OPTIONS = 2i32;
83 pub const HcsEventOptionNone: HCS_EVENT_OPTIONS = 0i32;
84 pub const HcsEventProcessExited: HCS_EVENT_TYPE = 65536i32;
85 pub const HcsEventServiceDisconnect: HCS_EVENT_TYPE = 33554432i32;
86 pub const HcsEventSystemCrashInitiated: HCS_EVENT_TYPE = 2i32;
87 pub const HcsEventSystemCrashReport: HCS_EVENT_TYPE = 3i32;
88 pub const HcsEventSystemExited: HCS_EVENT_TYPE = 1i32;
89 pub const HcsEventSystemGuestConnectionClosed: HCS_EVENT_TYPE = 6i32;
90 pub const HcsEventSystemRdpEnhancedModeStateChanged: HCS_EVENT_TYPE = 4i32;
91 pub const HcsEventSystemSiloJobCreated: HCS_EVENT_TYPE = 5i32;
92 pub const HcsNotificationFlagFailure: HCS_NOTIFICATION_FLAGS = -2147483648i32;
93 pub const HcsNotificationFlagSuccess: HCS_NOTIFICATION_FLAGS = 0i32;
94 pub const HcsNotificationFlagsReserved: HCS_NOTIFICATIONS = -268435456i32;
95 pub const HcsNotificationInvalid: HCS_NOTIFICATIONS = 0i32;
96 pub const HcsNotificationOperationProgressUpdate: HCS_NOTIFICATIONS = 256i32;
97 pub const HcsNotificationProcessExited: HCS_NOTIFICATIONS = 65536i32;
98 pub const HcsNotificationServiceDisconnect: HCS_NOTIFICATIONS = 16777216i32;
99 pub const HcsNotificationSystemCrashInitiated: HCS_NOTIFICATIONS = 13i32;
100 pub const HcsNotificationSystemCrashReport: HCS_NOTIFICATIONS = 6i32;
101 pub const HcsNotificationSystemCreateCompleted: HCS_NOTIFICATIONS = 2i32;
102 pub const HcsNotificationSystemExited: HCS_NOTIFICATIONS = 1i32;
103 pub const HcsNotificationSystemGetPropertiesCompleted: HCS_NOTIFICATIONS = 11i32;
104 pub const HcsNotificationSystemGuestConnectionClosed: HCS_NOTIFICATIONS = 14i32;
105 pub const HcsNotificationSystemModifyCompleted: HCS_NOTIFICATIONS = 12i32;
106 pub const HcsNotificationSystemOperationCompletion: HCS_NOTIFICATIONS = 15i32;
107 pub const HcsNotificationSystemPassThru: HCS_NOTIFICATIONS = 16i32;
108 pub const HcsNotificationSystemPauseCompleted: HCS_NOTIFICATIONS = 4i32;
109 pub const HcsNotificationSystemRdpEnhancedModeStateChanged: HCS_NOTIFICATIONS = 9i32;
110 pub const HcsNotificationSystemResumeCompleted: HCS_NOTIFICATIONS = 5i32;
111 pub const HcsNotificationSystemSaveCompleted: HCS_NOTIFICATIONS = 8i32;
112 pub const HcsNotificationSystemShutdownCompleted: HCS_NOTIFICATIONS = 10i32;
113 pub const HcsNotificationSystemShutdownFailed: HCS_NOTIFICATIONS = 10i32;
114 pub const HcsNotificationSystemSiloJobCreated: HCS_NOTIFICATIONS = 7i32;
115 pub const HcsNotificationSystemStartCompleted: HCS_NOTIFICATIONS = 3i32;
116 pub const HcsOperationOptionNone: HCS_OPERATION_OPTIONS = 0i32;
117 pub const HcsOperationOptionProgressUpdate: HCS_OPERATION_OPTIONS = 1i32;
118 pub const HcsOperationTypeCrash: HCS_OPERATION_TYPE = 15i32;
119 pub const HcsOperationTypeCreate: HCS_OPERATION_TYPE = 1i32;
120 pub const HcsOperationTypeCreateProcess: HCS_OPERATION_TYPE = 10i32;
121 pub const HcsOperationTypeEnumerate: HCS_OPERATION_TYPE = 0i32;
122 pub const HcsOperationTypeGetProcessInfo: HCS_OPERATION_TYPE = 12i32;
123 pub const HcsOperationTypeGetProcessProperties: HCS_OPERATION_TYPE = 13i32;
124 pub const HcsOperationTypeGetProperties: HCS_OPERATION_TYPE = 9i32;
125 pub const HcsOperationTypeModify: HCS_OPERATION_TYPE = 8i32;
126 pub const HcsOperationTypeModifyProcess: HCS_OPERATION_TYPE = 14i32;
127 pub const HcsOperationTypeNone: HCS_OPERATION_TYPE = -1i32;
128 pub const HcsOperationTypePause: HCS_OPERATION_TYPE = 4i32;
129 pub const HcsOperationTypeResume: HCS_OPERATION_TYPE = 5i32;
130 pub const HcsOperationTypeSave: HCS_OPERATION_TYPE = 6i32;
131 pub const HcsOperationTypeShutdown: HCS_OPERATION_TYPE = 3i32;
132 pub const HcsOperationTypeSignalProcess: HCS_OPERATION_TYPE = 11i32;
133 pub const HcsOperationTypeStart: HCS_OPERATION_TYPE = 2i32;
134 pub const HcsOperationTypeTerminate: HCS_OPERATION_TYPE = 7i32;
135 pub const HcsResourceTypeFile: HCS_RESOURCE_TYPE = 1i32;
136 pub const HcsResourceTypeJob: HCS_RESOURCE_TYPE = 2i32;
137 pub const HcsResourceTypeNone: HCS_RESOURCE_TYPE = 0i32;
138 pub type HCS_CREATE_OPTIONS = i32;
139 pub type HCS_EVENT_OPTIONS = i32;
140 pub type HCS_EVENT_TYPE = i32;
141 pub type HCS_NOTIFICATIONS = i32;
142 pub type HCS_NOTIFICATION_FLAGS = i32;
143 pub type HCS_OPERATION_OPTIONS = i32;
144 pub type HCS_OPERATION_TYPE = i32;
145 pub type HCS_RESOURCE_TYPE = i32;
146 #[repr(C)]
147 #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_Security\"`"]
148 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))]
149 pub struct HCS_CREATE_OPTIONS_1 {
150 pub Version: HCS_CREATE_OPTIONS,
151 pub UserToken: super::super::Foundation::HANDLE,
152 pub SecurityDescriptor: *mut super::super::Security::SECURITY_DESCRIPTOR,
153 pub CallbackOptions: HCS_EVENT_OPTIONS,
154 pub CallbackContext: *mut ::core::ffi::c_void,
155 pub Callback: HCS_EVENT_CALLBACK,
156 }
157 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))]
158 impl ::core::marker::Copy for HCS_CREATE_OPTIONS_1 {}
159 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))]
160 impl ::core::clone::Clone for HCS_CREATE_OPTIONS_1 {
161 fn clone(&self) -> Self {
162 *self
163 }
164 }
165 #[repr(C)]
166 pub struct HCS_EVENT {
167 pub Type: HCS_EVENT_TYPE,
168 pub EventData: ::windows_sys::core::PCWSTR,
169 pub Operation: HCS_OPERATION,
170 }
171 impl ::core::marker::Copy for HCS_EVENT {}
172 impl ::core::clone::Clone for HCS_EVENT {
173 fn clone(&self) -> Self {
174 *self
175 }
176 }
177 pub type HCS_OPERATION = isize;
178 pub type HCS_PROCESS = isize;
179 #[repr(C)]
180 #[doc = "Required features: `\"Win32_Foundation\"`"]
181 #[cfg(feature = "Win32_Foundation")]
182 pub struct HCS_PROCESS_INFORMATION {
183 pub ProcessId: u32,
184 pub Reserved: u32,
185 pub StdInput: super::super::Foundation::HANDLE,
186 pub StdOutput: super::super::Foundation::HANDLE,
187 pub StdError: super::super::Foundation::HANDLE,
188 }
189 #[cfg(feature = "Win32_Foundation")]
190 impl ::core::marker::Copy for HCS_PROCESS_INFORMATION {}
191 #[cfg(feature = "Win32_Foundation")]
192 impl ::core::clone::Clone for HCS_PROCESS_INFORMATION {
193 fn clone(&self) -> Self {
194 *self
195 }
196 }
197 pub type HCS_SYSTEM = isize;
198 pub type HCS_EVENT_CALLBACK = ::core::option::Option<unsafe extern "system" fn(event: *const HCS_EVENT, context: *const ::core::ffi::c_void) -> ()>;
199 pub 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) -> ()>;
200 pub type HCS_OPERATION_COMPLETION = ::core::option::Option<unsafe extern "system" fn(operation: HCS_OPERATION, context: *const ::core::ffi::c_void) -> ()>;