]> git.proxmox.com Git - rustc.git/blob - vendor/windows-sys/src/Windows/Win32/Storage/Vhd/mod.rs
New upstream version 1.63.0+dfsg1
[rustc.git] / vendor / windows-sys / src / Windows / Win32 / Storage / Vhd / mod.rs
1 #[link(name = "windows")]
2 extern "system" {
3 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`, `\"Win32_Foundation\"`*"]
4 #[cfg(feature = "Win32_Foundation")]
5 pub fn AddVirtualDiskParent(virtualdiskhandle: super::super::Foundation::HANDLE, parentpath: ::windows_sys::core::PCWSTR) -> super::super::Foundation::WIN32_ERROR;
6 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`, `\"Win32_Foundation\"`*"]
7 #[cfg(feature = "Win32_Foundation")]
8 pub fn ApplySnapshotVhdSet(virtualdiskhandle: super::super::Foundation::HANDLE, parameters: *const APPLY_SNAPSHOT_VHDSET_PARAMETERS, flags: APPLY_SNAPSHOT_VHDSET_FLAG) -> super::super::Foundation::WIN32_ERROR;
9 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`, `\"Win32_System_IO\"`*"]
10 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security", feature = "Win32_System_IO"))]
11 pub fn AttachVirtualDisk(virtualdiskhandle: super::super::Foundation::HANDLE, securitydescriptor: super::super::Security::PSECURITY_DESCRIPTOR, flags: ATTACH_VIRTUAL_DISK_FLAG, providerspecificflags: u32, parameters: *const ATTACH_VIRTUAL_DISK_PARAMETERS, overlapped: *const super::super::System::IO::OVERLAPPED) -> super::super::Foundation::WIN32_ERROR;
12 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`, `\"Win32_Foundation\"`*"]
13 #[cfg(feature = "Win32_Foundation")]
14 pub fn BreakMirrorVirtualDisk(virtualdiskhandle: super::super::Foundation::HANDLE) -> super::super::Foundation::WIN32_ERROR;
15 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`, `\"Win32_Foundation\"`, `\"Win32_System_IO\"`*"]
16 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_IO"))]
17 pub fn CompactVirtualDisk(virtualdiskhandle: super::super::Foundation::HANDLE, flags: COMPACT_VIRTUAL_DISK_FLAG, parameters: *const COMPACT_VIRTUAL_DISK_PARAMETERS, overlapped: *const super::super::System::IO::OVERLAPPED) -> super::super::Foundation::WIN32_ERROR;
18 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`, `\"Win32_Foundation\"`*"]
19 #[cfg(feature = "Win32_Foundation")]
20 pub fn CompleteForkVirtualDisk(virtualdiskhandle: super::super::Foundation::HANDLE) -> super::super::Foundation::WIN32_ERROR;
21 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`, `\"Win32_System_IO\"`*"]
22 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security", feature = "Win32_System_IO"))]
23 pub fn CreateVirtualDisk(virtualstoragetype: *const VIRTUAL_STORAGE_TYPE, path: ::windows_sys::core::PCWSTR, virtualdiskaccessmask: VIRTUAL_DISK_ACCESS_MASK, securitydescriptor: super::super::Security::PSECURITY_DESCRIPTOR, flags: CREATE_VIRTUAL_DISK_FLAG, providerspecificflags: u32, parameters: *const CREATE_VIRTUAL_DISK_PARAMETERS, overlapped: *const super::super::System::IO::OVERLAPPED, handle: *mut super::super::Foundation::HANDLE) -> super::super::Foundation::WIN32_ERROR;
24 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`, `\"Win32_Foundation\"`*"]
25 #[cfg(feature = "Win32_Foundation")]
26 pub fn DeleteSnapshotVhdSet(virtualdiskhandle: super::super::Foundation::HANDLE, parameters: *const DELETE_SNAPSHOT_VHDSET_PARAMETERS, flags: DELETE_SNAPSHOT_VHDSET_FLAG) -> super::super::Foundation::WIN32_ERROR;
27 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`, `\"Win32_Foundation\"`*"]
28 #[cfg(feature = "Win32_Foundation")]
29 pub fn DeleteVirtualDiskMetadata(virtualdiskhandle: super::super::Foundation::HANDLE, item: *const ::windows_sys::core::GUID) -> super::super::Foundation::WIN32_ERROR;
30 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`, `\"Win32_Foundation\"`*"]
31 #[cfg(feature = "Win32_Foundation")]
32 pub fn DetachVirtualDisk(virtualdiskhandle: super::super::Foundation::HANDLE, flags: DETACH_VIRTUAL_DISK_FLAG, providerspecificflags: u32) -> super::super::Foundation::WIN32_ERROR;
33 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`, `\"Win32_Foundation\"`*"]
34 #[cfg(feature = "Win32_Foundation")]
35 pub fn EnumerateVirtualDiskMetadata(virtualdiskhandle: super::super::Foundation::HANDLE, numberofitems: *mut u32, items: *mut ::windows_sys::core::GUID) -> super::super::Foundation::WIN32_ERROR;
36 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`, `\"Win32_Foundation\"`, `\"Win32_System_IO\"`*"]
37 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_IO"))]
38 pub fn ExpandVirtualDisk(virtualdiskhandle: super::super::Foundation::HANDLE, flags: EXPAND_VIRTUAL_DISK_FLAG, parameters: *const EXPAND_VIRTUAL_DISK_PARAMETERS, overlapped: *const super::super::System::IO::OVERLAPPED) -> super::super::Foundation::WIN32_ERROR;
39 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`, `\"Win32_Foundation\"`, `\"Win32_System_IO\"`*"]
40 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_IO"))]
41 pub fn ForkVirtualDisk(virtualdiskhandle: super::super::Foundation::HANDLE, flags: FORK_VIRTUAL_DISK_FLAG, parameters: *const FORK_VIRTUAL_DISK_PARAMETERS, overlapped: *mut super::super::System::IO::OVERLAPPED) -> super::super::Foundation::WIN32_ERROR;
42 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`, `\"Win32_Foundation\"`*"]
43 #[cfg(feature = "Win32_Foundation")]
44 pub fn GetAllAttachedVirtualDiskPhysicalPaths(pathsbuffersizeinbytes: *mut u32, pathsbuffer: ::windows_sys::core::PWSTR) -> super::super::Foundation::WIN32_ERROR;
45 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`, `\"Win32_Foundation\"`*"]
46 #[cfg(feature = "Win32_Foundation")]
47 pub fn GetStorageDependencyInformation(objecthandle: super::super::Foundation::HANDLE, flags: GET_STORAGE_DEPENDENCY_FLAG, storagedependencyinfosize: u32, storagedependencyinfo: *mut STORAGE_DEPENDENCY_INFO, sizeused: *mut u32) -> super::super::Foundation::WIN32_ERROR;
48 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`, `\"Win32_Foundation\"`*"]
49 #[cfg(feature = "Win32_Foundation")]
50 pub fn GetVirtualDiskInformation(virtualdiskhandle: super::super::Foundation::HANDLE, virtualdiskinfosize: *mut u32, virtualdiskinfo: *mut GET_VIRTUAL_DISK_INFO, sizeused: *mut u32) -> super::super::Foundation::WIN32_ERROR;
51 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`, `\"Win32_Foundation\"`*"]
52 #[cfg(feature = "Win32_Foundation")]
53 pub fn GetVirtualDiskMetadata(virtualdiskhandle: super::super::Foundation::HANDLE, item: *const ::windows_sys::core::GUID, metadatasize: *mut u32, metadata: *mut ::core::ffi::c_void) -> super::super::Foundation::WIN32_ERROR;
54 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`, `\"Win32_Foundation\"`, `\"Win32_System_IO\"`*"]
55 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_IO"))]
56 pub fn GetVirtualDiskOperationProgress(virtualdiskhandle: super::super::Foundation::HANDLE, overlapped: *const super::super::System::IO::OVERLAPPED, progress: *mut VIRTUAL_DISK_PROGRESS) -> super::super::Foundation::WIN32_ERROR;
57 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`, `\"Win32_Foundation\"`*"]
58 #[cfg(feature = "Win32_Foundation")]
59 pub fn GetVirtualDiskPhysicalPath(virtualdiskhandle: super::super::Foundation::HANDLE, diskpathsizeinbytes: *mut u32, diskpath: ::windows_sys::core::PWSTR) -> super::super::Foundation::WIN32_ERROR;
60 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`, `\"Win32_Foundation\"`, `\"Win32_System_IO\"`*"]
61 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_IO"))]
62 pub fn MergeVirtualDisk(virtualdiskhandle: super::super::Foundation::HANDLE, flags: MERGE_VIRTUAL_DISK_FLAG, parameters: *const MERGE_VIRTUAL_DISK_PARAMETERS, overlapped: *const super::super::System::IO::OVERLAPPED) -> super::super::Foundation::WIN32_ERROR;
63 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`, `\"Win32_Foundation\"`, `\"Win32_System_IO\"`*"]
64 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_IO"))]
65 pub fn MirrorVirtualDisk(virtualdiskhandle: super::super::Foundation::HANDLE, flags: MIRROR_VIRTUAL_DISK_FLAG, parameters: *const MIRROR_VIRTUAL_DISK_PARAMETERS, overlapped: *const super::super::System::IO::OVERLAPPED) -> super::super::Foundation::WIN32_ERROR;
66 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`, `\"Win32_Foundation\"`*"]
67 #[cfg(feature = "Win32_Foundation")]
68 pub fn ModifyVhdSet(virtualdiskhandle: super::super::Foundation::HANDLE, parameters: *const MODIFY_VHDSET_PARAMETERS, flags: MODIFY_VHDSET_FLAG) -> super::super::Foundation::WIN32_ERROR;
69 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`, `\"Win32_Foundation\"`*"]
70 #[cfg(feature = "Win32_Foundation")]
71 pub fn OpenVirtualDisk(virtualstoragetype: *const VIRTUAL_STORAGE_TYPE, path: ::windows_sys::core::PCWSTR, virtualdiskaccessmask: VIRTUAL_DISK_ACCESS_MASK, flags: OPEN_VIRTUAL_DISK_FLAG, parameters: *const OPEN_VIRTUAL_DISK_PARAMETERS, handle: *mut super::super::Foundation::HANDLE) -> super::super::Foundation::WIN32_ERROR;
72 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`, `\"Win32_Foundation\"`*"]
73 #[cfg(feature = "Win32_Foundation")]
74 pub fn QueryChangesVirtualDisk(virtualdiskhandle: super::super::Foundation::HANDLE, changetrackingid: ::windows_sys::core::PCWSTR, byteoffset: u64, bytelength: u64, flags: QUERY_CHANGES_VIRTUAL_DISK_FLAG, ranges: *mut QUERY_CHANGES_VIRTUAL_DISK_RANGE, rangecount: *mut u32, processedlength: *mut u64) -> super::super::Foundation::WIN32_ERROR;
75 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`, `\"Win32_Foundation\"`*"]
76 #[cfg(feature = "Win32_Foundation")]
77 pub fn RawSCSIVirtualDisk(virtualdiskhandle: super::super::Foundation::HANDLE, parameters: *const RAW_SCSI_VIRTUAL_DISK_PARAMETERS, flags: RAW_SCSI_VIRTUAL_DISK_FLAG, response: *mut RAW_SCSI_VIRTUAL_DISK_RESPONSE) -> super::super::Foundation::WIN32_ERROR;
78 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`, `\"Win32_Foundation\"`, `\"Win32_System_IO\"`*"]
79 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_IO"))]
80 pub fn ResizeVirtualDisk(virtualdiskhandle: super::super::Foundation::HANDLE, flags: RESIZE_VIRTUAL_DISK_FLAG, parameters: *const RESIZE_VIRTUAL_DISK_PARAMETERS, overlapped: *const super::super::System::IO::OVERLAPPED) -> super::super::Foundation::WIN32_ERROR;
81 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`, `\"Win32_Foundation\"`*"]
82 #[cfg(feature = "Win32_Foundation")]
83 pub fn SetVirtualDiskInformation(virtualdiskhandle: super::super::Foundation::HANDLE, virtualdiskinfo: *const SET_VIRTUAL_DISK_INFO) -> super::super::Foundation::WIN32_ERROR;
84 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`, `\"Win32_Foundation\"`*"]
85 #[cfg(feature = "Win32_Foundation")]
86 pub fn SetVirtualDiskMetadata(virtualdiskhandle: super::super::Foundation::HANDLE, item: *const ::windows_sys::core::GUID, metadatasize: u32, metadata: *const ::core::ffi::c_void) -> super::super::Foundation::WIN32_ERROR;
87 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`, `\"Win32_Foundation\"`*"]
88 #[cfg(feature = "Win32_Foundation")]
89 pub fn TakeSnapshotVhdSet(virtualdiskhandle: super::super::Foundation::HANDLE, parameters: *const TAKE_SNAPSHOT_VHDSET_PARAMETERS, flags: TAKE_SNAPSHOT_VHDSET_FLAG) -> super::super::Foundation::WIN32_ERROR;
90 }
91 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
92 pub type APPLY_SNAPSHOT_VHDSET_FLAG = u32;
93 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
94 pub const APPLY_SNAPSHOT_VHDSET_FLAG_NONE: APPLY_SNAPSHOT_VHDSET_FLAG = 0u32;
95 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
96 pub const APPLY_SNAPSHOT_VHDSET_FLAG_WRITEABLE: APPLY_SNAPSHOT_VHDSET_FLAG = 1u32;
97 #[repr(C)]
98 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
99 pub struct APPLY_SNAPSHOT_VHDSET_PARAMETERS {
100 pub Version: APPLY_SNAPSHOT_VHDSET_VERSION,
101 pub Anonymous: APPLY_SNAPSHOT_VHDSET_PARAMETERS_0,
102 }
103 impl ::core::marker::Copy for APPLY_SNAPSHOT_VHDSET_PARAMETERS {}
104 impl ::core::clone::Clone for APPLY_SNAPSHOT_VHDSET_PARAMETERS {
105 fn clone(&self) -> Self {
106 *self
107 }
108 }
109 #[repr(C)]
110 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
111 pub union APPLY_SNAPSHOT_VHDSET_PARAMETERS_0 {
112 pub Version1: APPLY_SNAPSHOT_VHDSET_PARAMETERS_0_0,
113 }
114 impl ::core::marker::Copy for APPLY_SNAPSHOT_VHDSET_PARAMETERS_0 {}
115 impl ::core::clone::Clone for APPLY_SNAPSHOT_VHDSET_PARAMETERS_0 {
116 fn clone(&self) -> Self {
117 *self
118 }
119 }
120 #[repr(C)]
121 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
122 pub struct APPLY_SNAPSHOT_VHDSET_PARAMETERS_0_0 {
123 pub SnapshotId: ::windows_sys::core::GUID,
124 pub LeafSnapshotId: ::windows_sys::core::GUID,
125 }
126 impl ::core::marker::Copy for APPLY_SNAPSHOT_VHDSET_PARAMETERS_0_0 {}
127 impl ::core::clone::Clone for APPLY_SNAPSHOT_VHDSET_PARAMETERS_0_0 {
128 fn clone(&self) -> Self {
129 *self
130 }
131 }
132 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
133 pub type APPLY_SNAPSHOT_VHDSET_VERSION = i32;
134 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
135 pub const APPLY_SNAPSHOT_VHDSET_VERSION_UNSPECIFIED: APPLY_SNAPSHOT_VHDSET_VERSION = 0i32;
136 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
137 pub const APPLY_SNAPSHOT_VHDSET_VERSION_1: APPLY_SNAPSHOT_VHDSET_VERSION = 1i32;
138 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
139 pub type ATTACH_VIRTUAL_DISK_FLAG = u32;
140 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
141 pub const ATTACH_VIRTUAL_DISK_FLAG_NONE: ATTACH_VIRTUAL_DISK_FLAG = 0u32;
142 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
143 pub const ATTACH_VIRTUAL_DISK_FLAG_READ_ONLY: ATTACH_VIRTUAL_DISK_FLAG = 1u32;
144 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
145 pub const ATTACH_VIRTUAL_DISK_FLAG_NO_DRIVE_LETTER: ATTACH_VIRTUAL_DISK_FLAG = 2u32;
146 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
147 pub const ATTACH_VIRTUAL_DISK_FLAG_PERMANENT_LIFETIME: ATTACH_VIRTUAL_DISK_FLAG = 4u32;
148 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
149 pub const ATTACH_VIRTUAL_DISK_FLAG_NO_LOCAL_HOST: ATTACH_VIRTUAL_DISK_FLAG = 8u32;
150 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
151 pub const ATTACH_VIRTUAL_DISK_FLAG_NO_SECURITY_DESCRIPTOR: ATTACH_VIRTUAL_DISK_FLAG = 16u32;
152 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
153 pub const ATTACH_VIRTUAL_DISK_FLAG_BYPASS_DEFAULT_ENCRYPTION_POLICY: ATTACH_VIRTUAL_DISK_FLAG = 32u32;
154 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
155 pub const ATTACH_VIRTUAL_DISK_FLAG_NON_PNP: ATTACH_VIRTUAL_DISK_FLAG = 64u32;
156 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
157 pub const ATTACH_VIRTUAL_DISK_FLAG_RESTRICTED_RANGE: ATTACH_VIRTUAL_DISK_FLAG = 128u32;
158 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
159 pub const ATTACH_VIRTUAL_DISK_FLAG_SINGLE_PARTITION: ATTACH_VIRTUAL_DISK_FLAG = 256u32;
160 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
161 pub const ATTACH_VIRTUAL_DISK_FLAG_REGISTER_VOLUME: ATTACH_VIRTUAL_DISK_FLAG = 512u32;
162 #[repr(C)]
163 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
164 pub struct ATTACH_VIRTUAL_DISK_PARAMETERS {
165 pub Version: ATTACH_VIRTUAL_DISK_VERSION,
166 pub Anonymous: ATTACH_VIRTUAL_DISK_PARAMETERS_0,
167 }
168 impl ::core::marker::Copy for ATTACH_VIRTUAL_DISK_PARAMETERS {}
169 impl ::core::clone::Clone for ATTACH_VIRTUAL_DISK_PARAMETERS {
170 fn clone(&self) -> Self {
171 *self
172 }
173 }
174 #[repr(C)]
175 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
176 pub union ATTACH_VIRTUAL_DISK_PARAMETERS_0 {
177 pub Version1: ATTACH_VIRTUAL_DISK_PARAMETERS_0_0,
178 pub Version2: ATTACH_VIRTUAL_DISK_PARAMETERS_0_1,
179 }
180 impl ::core::marker::Copy for ATTACH_VIRTUAL_DISK_PARAMETERS_0 {}
181 impl ::core::clone::Clone for ATTACH_VIRTUAL_DISK_PARAMETERS_0 {
182 fn clone(&self) -> Self {
183 *self
184 }
185 }
186 #[repr(C)]
187 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
188 pub struct ATTACH_VIRTUAL_DISK_PARAMETERS_0_0 {
189 pub Reserved: u32,
190 }
191 impl ::core::marker::Copy for ATTACH_VIRTUAL_DISK_PARAMETERS_0_0 {}
192 impl ::core::clone::Clone for ATTACH_VIRTUAL_DISK_PARAMETERS_0_0 {
193 fn clone(&self) -> Self {
194 *self
195 }
196 }
197 #[repr(C)]
198 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
199 pub struct ATTACH_VIRTUAL_DISK_PARAMETERS_0_1 {
200 pub RestrictedOffset: u64,
201 pub RestrictedLength: u64,
202 }
203 impl ::core::marker::Copy for ATTACH_VIRTUAL_DISK_PARAMETERS_0_1 {}
204 impl ::core::clone::Clone for ATTACH_VIRTUAL_DISK_PARAMETERS_0_1 {
205 fn clone(&self) -> Self {
206 *self
207 }
208 }
209 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
210 pub type ATTACH_VIRTUAL_DISK_VERSION = i32;
211 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
212 pub const ATTACH_VIRTUAL_DISK_VERSION_UNSPECIFIED: ATTACH_VIRTUAL_DISK_VERSION = 0i32;
213 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
214 pub const ATTACH_VIRTUAL_DISK_VERSION_1: ATTACH_VIRTUAL_DISK_VERSION = 1i32;
215 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
216 pub const ATTACH_VIRTUAL_DISK_VERSION_2: ATTACH_VIRTUAL_DISK_VERSION = 2i32;
217 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
218 pub type COMPACT_VIRTUAL_DISK_FLAG = u32;
219 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
220 pub const COMPACT_VIRTUAL_DISK_FLAG_NONE: COMPACT_VIRTUAL_DISK_FLAG = 0u32;
221 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
222 pub const COMPACT_VIRTUAL_DISK_FLAG_NO_ZERO_SCAN: COMPACT_VIRTUAL_DISK_FLAG = 1u32;
223 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
224 pub const COMPACT_VIRTUAL_DISK_FLAG_NO_BLOCK_MOVES: COMPACT_VIRTUAL_DISK_FLAG = 2u32;
225 #[repr(C)]
226 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
227 pub struct COMPACT_VIRTUAL_DISK_PARAMETERS {
228 pub Version: COMPACT_VIRTUAL_DISK_VERSION,
229 pub Anonymous: COMPACT_VIRTUAL_DISK_PARAMETERS_0,
230 }
231 impl ::core::marker::Copy for COMPACT_VIRTUAL_DISK_PARAMETERS {}
232 impl ::core::clone::Clone for COMPACT_VIRTUAL_DISK_PARAMETERS {
233 fn clone(&self) -> Self {
234 *self
235 }
236 }
237 #[repr(C)]
238 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
239 pub union COMPACT_VIRTUAL_DISK_PARAMETERS_0 {
240 pub Version1: COMPACT_VIRTUAL_DISK_PARAMETERS_0_0,
241 }
242 impl ::core::marker::Copy for COMPACT_VIRTUAL_DISK_PARAMETERS_0 {}
243 impl ::core::clone::Clone for COMPACT_VIRTUAL_DISK_PARAMETERS_0 {
244 fn clone(&self) -> Self {
245 *self
246 }
247 }
248 #[repr(C)]
249 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
250 pub struct COMPACT_VIRTUAL_DISK_PARAMETERS_0_0 {
251 pub Reserved: u32,
252 }
253 impl ::core::marker::Copy for COMPACT_VIRTUAL_DISK_PARAMETERS_0_0 {}
254 impl ::core::clone::Clone for COMPACT_VIRTUAL_DISK_PARAMETERS_0_0 {
255 fn clone(&self) -> Self {
256 *self
257 }
258 }
259 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
260 pub type COMPACT_VIRTUAL_DISK_VERSION = i32;
261 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
262 pub const COMPACT_VIRTUAL_DISK_VERSION_UNSPECIFIED: COMPACT_VIRTUAL_DISK_VERSION = 0i32;
263 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
264 pub const COMPACT_VIRTUAL_DISK_VERSION_1: COMPACT_VIRTUAL_DISK_VERSION = 1i32;
265 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
266 pub type CREATE_VIRTUAL_DISK_FLAG = u32;
267 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
268 pub const CREATE_VIRTUAL_DISK_FLAG_NONE: CREATE_VIRTUAL_DISK_FLAG = 0u32;
269 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
270 pub const CREATE_VIRTUAL_DISK_FLAG_FULL_PHYSICAL_ALLOCATION: CREATE_VIRTUAL_DISK_FLAG = 1u32;
271 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
272 pub const CREATE_VIRTUAL_DISK_FLAG_PREVENT_WRITES_TO_SOURCE_DISK: CREATE_VIRTUAL_DISK_FLAG = 2u32;
273 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
274 pub const CREATE_VIRTUAL_DISK_FLAG_DO_NOT_COPY_METADATA_FROM_PARENT: CREATE_VIRTUAL_DISK_FLAG = 4u32;
275 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
276 pub const CREATE_VIRTUAL_DISK_FLAG_CREATE_BACKING_STORAGE: CREATE_VIRTUAL_DISK_FLAG = 8u32;
277 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
278 pub const CREATE_VIRTUAL_DISK_FLAG_USE_CHANGE_TRACKING_SOURCE_LIMIT: CREATE_VIRTUAL_DISK_FLAG = 16u32;
279 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
280 pub const CREATE_VIRTUAL_DISK_FLAG_PRESERVE_PARENT_CHANGE_TRACKING_STATE: CREATE_VIRTUAL_DISK_FLAG = 32u32;
281 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
282 pub const CREATE_VIRTUAL_DISK_FLAG_VHD_SET_USE_ORIGINAL_BACKING_STORAGE: CREATE_VIRTUAL_DISK_FLAG = 64u32;
283 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
284 pub const CREATE_VIRTUAL_DISK_FLAG_SPARSE_FILE: CREATE_VIRTUAL_DISK_FLAG = 128u32;
285 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
286 pub const CREATE_VIRTUAL_DISK_FLAG_PMEM_COMPATIBLE: CREATE_VIRTUAL_DISK_FLAG = 256u32;
287 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
288 pub const CREATE_VIRTUAL_DISK_FLAG_SUPPORT_COMPRESSED_VOLUMES: CREATE_VIRTUAL_DISK_FLAG = 512u32;
289 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
290 pub const CREATE_VIRTUAL_DISK_FLAG_SUPPORT_SPARSE_FILES_ANY_FS: CREATE_VIRTUAL_DISK_FLAG = 1024u32;
291 #[repr(C)]
292 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
293 pub struct CREATE_VIRTUAL_DISK_PARAMETERS {
294 pub Version: CREATE_VIRTUAL_DISK_VERSION,
295 pub Anonymous: CREATE_VIRTUAL_DISK_PARAMETERS_0,
296 }
297 impl ::core::marker::Copy for CREATE_VIRTUAL_DISK_PARAMETERS {}
298 impl ::core::clone::Clone for CREATE_VIRTUAL_DISK_PARAMETERS {
299 fn clone(&self) -> Self {
300 *self
301 }
302 }
303 #[repr(C)]
304 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
305 pub union CREATE_VIRTUAL_DISK_PARAMETERS_0 {
306 pub Version1: CREATE_VIRTUAL_DISK_PARAMETERS_0_0,
307 pub Version2: CREATE_VIRTUAL_DISK_PARAMETERS_0_1,
308 pub Version3: CREATE_VIRTUAL_DISK_PARAMETERS_0_2,
309 pub Version4: CREATE_VIRTUAL_DISK_PARAMETERS_0_3,
310 }
311 impl ::core::marker::Copy for CREATE_VIRTUAL_DISK_PARAMETERS_0 {}
312 impl ::core::clone::Clone for CREATE_VIRTUAL_DISK_PARAMETERS_0 {
313 fn clone(&self) -> Self {
314 *self
315 }
316 }
317 #[repr(C)]
318 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
319 pub struct CREATE_VIRTUAL_DISK_PARAMETERS_0_0 {
320 pub UniqueId: ::windows_sys::core::GUID,
321 pub MaximumSize: u64,
322 pub BlockSizeInBytes: u32,
323 pub SectorSizeInBytes: u32,
324 pub ParentPath: ::windows_sys::core::PCWSTR,
325 pub SourcePath: ::windows_sys::core::PCWSTR,
326 }
327 impl ::core::marker::Copy for CREATE_VIRTUAL_DISK_PARAMETERS_0_0 {}
328 impl ::core::clone::Clone for CREATE_VIRTUAL_DISK_PARAMETERS_0_0 {
329 fn clone(&self) -> Self {
330 *self
331 }
332 }
333 #[repr(C)]
334 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
335 pub struct CREATE_VIRTUAL_DISK_PARAMETERS_0_1 {
336 pub UniqueId: ::windows_sys::core::GUID,
337 pub MaximumSize: u64,
338 pub BlockSizeInBytes: u32,
339 pub SectorSizeInBytes: u32,
340 pub PhysicalSectorSizeInBytes: u32,
341 pub ParentPath: ::windows_sys::core::PCWSTR,
342 pub SourcePath: ::windows_sys::core::PCWSTR,
343 pub OpenFlags: OPEN_VIRTUAL_DISK_FLAG,
344 pub ParentVirtualStorageType: VIRTUAL_STORAGE_TYPE,
345 pub SourceVirtualStorageType: VIRTUAL_STORAGE_TYPE,
346 pub ResiliencyGuid: ::windows_sys::core::GUID,
347 }
348 impl ::core::marker::Copy for CREATE_VIRTUAL_DISK_PARAMETERS_0_1 {}
349 impl ::core::clone::Clone for CREATE_VIRTUAL_DISK_PARAMETERS_0_1 {
350 fn clone(&self) -> Self {
351 *self
352 }
353 }
354 #[repr(C)]
355 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
356 pub struct CREATE_VIRTUAL_DISK_PARAMETERS_0_2 {
357 pub UniqueId: ::windows_sys::core::GUID,
358 pub MaximumSize: u64,
359 pub BlockSizeInBytes: u32,
360 pub SectorSizeInBytes: u32,
361 pub PhysicalSectorSizeInBytes: u32,
362 pub ParentPath: ::windows_sys::core::PCWSTR,
363 pub SourcePath: ::windows_sys::core::PCWSTR,
364 pub OpenFlags: OPEN_VIRTUAL_DISK_FLAG,
365 pub ParentVirtualStorageType: VIRTUAL_STORAGE_TYPE,
366 pub SourceVirtualStorageType: VIRTUAL_STORAGE_TYPE,
367 pub ResiliencyGuid: ::windows_sys::core::GUID,
368 pub SourceLimitPath: ::windows_sys::core::PCWSTR,
369 pub BackingStorageType: VIRTUAL_STORAGE_TYPE,
370 }
371 impl ::core::marker::Copy for CREATE_VIRTUAL_DISK_PARAMETERS_0_2 {}
372 impl ::core::clone::Clone for CREATE_VIRTUAL_DISK_PARAMETERS_0_2 {
373 fn clone(&self) -> Self {
374 *self
375 }
376 }
377 #[repr(C)]
378 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
379 pub struct CREATE_VIRTUAL_DISK_PARAMETERS_0_3 {
380 pub UniqueId: ::windows_sys::core::GUID,
381 pub MaximumSize: u64,
382 pub BlockSizeInBytes: u32,
383 pub SectorSizeInBytes: u32,
384 pub PhysicalSectorSizeInBytes: u32,
385 pub ParentPath: ::windows_sys::core::PCWSTR,
386 pub SourcePath: ::windows_sys::core::PCWSTR,
387 pub OpenFlags: OPEN_VIRTUAL_DISK_FLAG,
388 pub ParentVirtualStorageType: VIRTUAL_STORAGE_TYPE,
389 pub SourceVirtualStorageType: VIRTUAL_STORAGE_TYPE,
390 pub ResiliencyGuid: ::windows_sys::core::GUID,
391 pub SourceLimitPath: ::windows_sys::core::PCWSTR,
392 pub BackingStorageType: VIRTUAL_STORAGE_TYPE,
393 pub PmemAddressAbstractionType: ::windows_sys::core::GUID,
394 pub DataAlignment: u64,
395 }
396 impl ::core::marker::Copy for CREATE_VIRTUAL_DISK_PARAMETERS_0_3 {}
397 impl ::core::clone::Clone for CREATE_VIRTUAL_DISK_PARAMETERS_0_3 {
398 fn clone(&self) -> Self {
399 *self
400 }
401 }
402 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
403 pub const CREATE_VIRTUAL_DISK_PARAMETERS_DEFAULT_BLOCK_SIZE: u32 = 0u32;
404 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
405 pub const CREATE_VIRTUAL_DISK_PARAMETERS_DEFAULT_SECTOR_SIZE: u32 = 0u32;
406 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
407 pub type CREATE_VIRTUAL_DISK_VERSION = i32;
408 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
409 pub const CREATE_VIRTUAL_DISK_VERSION_UNSPECIFIED: CREATE_VIRTUAL_DISK_VERSION = 0i32;
410 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
411 pub const CREATE_VIRTUAL_DISK_VERSION_1: CREATE_VIRTUAL_DISK_VERSION = 1i32;
412 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
413 pub const CREATE_VIRTUAL_DISK_VERSION_2: CREATE_VIRTUAL_DISK_VERSION = 2i32;
414 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
415 pub const CREATE_VIRTUAL_DISK_VERSION_3: CREATE_VIRTUAL_DISK_VERSION = 3i32;
416 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
417 pub const CREATE_VIRTUAL_DISK_VERSION_4: CREATE_VIRTUAL_DISK_VERSION = 4i32;
418 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
419 pub type DELETE_SNAPSHOT_VHDSET_FLAG = u32;
420 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
421 pub const DELETE_SNAPSHOT_VHDSET_FLAG_NONE: DELETE_SNAPSHOT_VHDSET_FLAG = 0u32;
422 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
423 pub const DELETE_SNAPSHOT_VHDSET_FLAG_PERSIST_RCT: DELETE_SNAPSHOT_VHDSET_FLAG = 1u32;
424 #[repr(C)]
425 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
426 pub struct DELETE_SNAPSHOT_VHDSET_PARAMETERS {
427 pub Version: DELETE_SNAPSHOT_VHDSET_VERSION,
428 pub Anonymous: DELETE_SNAPSHOT_VHDSET_PARAMETERS_0,
429 }
430 impl ::core::marker::Copy for DELETE_SNAPSHOT_VHDSET_PARAMETERS {}
431 impl ::core::clone::Clone for DELETE_SNAPSHOT_VHDSET_PARAMETERS {
432 fn clone(&self) -> Self {
433 *self
434 }
435 }
436 #[repr(C)]
437 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
438 pub union DELETE_SNAPSHOT_VHDSET_PARAMETERS_0 {
439 pub Version1: DELETE_SNAPSHOT_VHDSET_PARAMETERS_0_0,
440 }
441 impl ::core::marker::Copy for DELETE_SNAPSHOT_VHDSET_PARAMETERS_0 {}
442 impl ::core::clone::Clone for DELETE_SNAPSHOT_VHDSET_PARAMETERS_0 {
443 fn clone(&self) -> Self {
444 *self
445 }
446 }
447 #[repr(C)]
448 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
449 pub struct DELETE_SNAPSHOT_VHDSET_PARAMETERS_0_0 {
450 pub SnapshotId: ::windows_sys::core::GUID,
451 }
452 impl ::core::marker::Copy for DELETE_SNAPSHOT_VHDSET_PARAMETERS_0_0 {}
453 impl ::core::clone::Clone for DELETE_SNAPSHOT_VHDSET_PARAMETERS_0_0 {
454 fn clone(&self) -> Self {
455 *self
456 }
457 }
458 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
459 pub type DELETE_SNAPSHOT_VHDSET_VERSION = i32;
460 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
461 pub const DELETE_SNAPSHOT_VHDSET_VERSION_UNSPECIFIED: DELETE_SNAPSHOT_VHDSET_VERSION = 0i32;
462 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
463 pub const DELETE_SNAPSHOT_VHDSET_VERSION_1: DELETE_SNAPSHOT_VHDSET_VERSION = 1i32;
464 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
465 pub type DEPENDENT_DISK_FLAG = u32;
466 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
467 pub const DEPENDENT_DISK_FLAG_NONE: DEPENDENT_DISK_FLAG = 0u32;
468 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
469 pub const DEPENDENT_DISK_FLAG_MULT_BACKING_FILES: DEPENDENT_DISK_FLAG = 1u32;
470 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
471 pub const DEPENDENT_DISK_FLAG_FULLY_ALLOCATED: DEPENDENT_DISK_FLAG = 2u32;
472 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
473 pub const DEPENDENT_DISK_FLAG_READ_ONLY: DEPENDENT_DISK_FLAG = 4u32;
474 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
475 pub const DEPENDENT_DISK_FLAG_REMOTE: DEPENDENT_DISK_FLAG = 8u32;
476 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
477 pub const DEPENDENT_DISK_FLAG_SYSTEM_VOLUME: DEPENDENT_DISK_FLAG = 16u32;
478 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
479 pub const DEPENDENT_DISK_FLAG_SYSTEM_VOLUME_PARENT: DEPENDENT_DISK_FLAG = 32u32;
480 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
481 pub const DEPENDENT_DISK_FLAG_REMOVABLE: DEPENDENT_DISK_FLAG = 64u32;
482 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
483 pub const DEPENDENT_DISK_FLAG_NO_DRIVE_LETTER: DEPENDENT_DISK_FLAG = 128u32;
484 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
485 pub const DEPENDENT_DISK_FLAG_PARENT: DEPENDENT_DISK_FLAG = 256u32;
486 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
487 pub const DEPENDENT_DISK_FLAG_NO_HOST_DISK: DEPENDENT_DISK_FLAG = 512u32;
488 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
489 pub const DEPENDENT_DISK_FLAG_PERMANENT_LIFETIME: DEPENDENT_DISK_FLAG = 1024u32;
490 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
491 pub const DEPENDENT_DISK_FLAG_SUPPORT_COMPRESSED_VOLUMES: DEPENDENT_DISK_FLAG = 2048u32;
492 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
493 pub const DEPENDENT_DISK_FLAG_ALWAYS_ALLOW_SPARSE: DEPENDENT_DISK_FLAG = 4096u32;
494 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
495 pub const DEPENDENT_DISK_FLAG_SUPPORT_ENCRYPTED_FILES: DEPENDENT_DISK_FLAG = 8192u32;
496 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
497 pub type DETACH_VIRTUAL_DISK_FLAG = u32;
498 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
499 pub const DETACH_VIRTUAL_DISK_FLAG_NONE: DETACH_VIRTUAL_DISK_FLAG = 0u32;
500 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
501 pub type EXPAND_VIRTUAL_DISK_FLAG = u32;
502 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
503 pub const EXPAND_VIRTUAL_DISK_FLAG_NONE: EXPAND_VIRTUAL_DISK_FLAG = 0u32;
504 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
505 pub const EXPAND_VIRTUAL_DISK_FLAG_NOTIFY_CHANGE: EXPAND_VIRTUAL_DISK_FLAG = 1u32;
506 #[repr(C)]
507 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
508 pub struct EXPAND_VIRTUAL_DISK_PARAMETERS {
509 pub Version: EXPAND_VIRTUAL_DISK_VERSION,
510 pub Anonymous: EXPAND_VIRTUAL_DISK_PARAMETERS_0,
511 }
512 impl ::core::marker::Copy for EXPAND_VIRTUAL_DISK_PARAMETERS {}
513 impl ::core::clone::Clone for EXPAND_VIRTUAL_DISK_PARAMETERS {
514 fn clone(&self) -> Self {
515 *self
516 }
517 }
518 #[repr(C)]
519 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
520 pub union EXPAND_VIRTUAL_DISK_PARAMETERS_0 {
521 pub Version1: EXPAND_VIRTUAL_DISK_PARAMETERS_0_0,
522 }
523 impl ::core::marker::Copy for EXPAND_VIRTUAL_DISK_PARAMETERS_0 {}
524 impl ::core::clone::Clone for EXPAND_VIRTUAL_DISK_PARAMETERS_0 {
525 fn clone(&self) -> Self {
526 *self
527 }
528 }
529 #[repr(C)]
530 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
531 pub struct EXPAND_VIRTUAL_DISK_PARAMETERS_0_0 {
532 pub NewSize: u64,
533 }
534 impl ::core::marker::Copy for EXPAND_VIRTUAL_DISK_PARAMETERS_0_0 {}
535 impl ::core::clone::Clone for EXPAND_VIRTUAL_DISK_PARAMETERS_0_0 {
536 fn clone(&self) -> Self {
537 *self
538 }
539 }
540 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
541 pub type EXPAND_VIRTUAL_DISK_VERSION = i32;
542 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
543 pub const EXPAND_VIRTUAL_DISK_VERSION_UNSPECIFIED: EXPAND_VIRTUAL_DISK_VERSION = 0i32;
544 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
545 pub const EXPAND_VIRTUAL_DISK_VERSION_1: EXPAND_VIRTUAL_DISK_VERSION = 1i32;
546 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
547 pub type FORK_VIRTUAL_DISK_FLAG = u32;
548 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
549 pub const FORK_VIRTUAL_DISK_FLAG_NONE: FORK_VIRTUAL_DISK_FLAG = 0u32;
550 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
551 pub const FORK_VIRTUAL_DISK_FLAG_EXISTING_FILE: FORK_VIRTUAL_DISK_FLAG = 1u32;
552 #[repr(C)]
553 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
554 pub struct FORK_VIRTUAL_DISK_PARAMETERS {
555 pub Version: FORK_VIRTUAL_DISK_VERSION,
556 pub Anonymous: FORK_VIRTUAL_DISK_PARAMETERS_0,
557 }
558 impl ::core::marker::Copy for FORK_VIRTUAL_DISK_PARAMETERS {}
559 impl ::core::clone::Clone for FORK_VIRTUAL_DISK_PARAMETERS {
560 fn clone(&self) -> Self {
561 *self
562 }
563 }
564 #[repr(C)]
565 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
566 pub union FORK_VIRTUAL_DISK_PARAMETERS_0 {
567 pub Version1: FORK_VIRTUAL_DISK_PARAMETERS_0_0,
568 }
569 impl ::core::marker::Copy for FORK_VIRTUAL_DISK_PARAMETERS_0 {}
570 impl ::core::clone::Clone for FORK_VIRTUAL_DISK_PARAMETERS_0 {
571 fn clone(&self) -> Self {
572 *self
573 }
574 }
575 #[repr(C)]
576 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
577 pub struct FORK_VIRTUAL_DISK_PARAMETERS_0_0 {
578 pub ForkedVirtualDiskPath: ::windows_sys::core::PCWSTR,
579 }
580 impl ::core::marker::Copy for FORK_VIRTUAL_DISK_PARAMETERS_0_0 {}
581 impl ::core::clone::Clone for FORK_VIRTUAL_DISK_PARAMETERS_0_0 {
582 fn clone(&self) -> Self {
583 *self
584 }
585 }
586 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
587 pub type FORK_VIRTUAL_DISK_VERSION = i32;
588 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
589 pub const FORK_VIRTUAL_DISK_VERSION_UNSPECIFIED: FORK_VIRTUAL_DISK_VERSION = 0i32;
590 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
591 pub const FORK_VIRTUAL_DISK_VERSION_1: FORK_VIRTUAL_DISK_VERSION = 1i32;
592 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
593 pub type GET_STORAGE_DEPENDENCY_FLAG = u32;
594 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
595 pub const GET_STORAGE_DEPENDENCY_FLAG_NONE: GET_STORAGE_DEPENDENCY_FLAG = 0u32;
596 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
597 pub const GET_STORAGE_DEPENDENCY_FLAG_HOST_VOLUMES: GET_STORAGE_DEPENDENCY_FLAG = 1u32;
598 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
599 pub const GET_STORAGE_DEPENDENCY_FLAG_DISK_HANDLE: GET_STORAGE_DEPENDENCY_FLAG = 2u32;
600 #[repr(C)]
601 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`, `\"Win32_Foundation\"`*"]
602 #[cfg(feature = "Win32_Foundation")]
603 pub struct GET_VIRTUAL_DISK_INFO {
604 pub Version: GET_VIRTUAL_DISK_INFO_VERSION,
605 pub Anonymous: GET_VIRTUAL_DISK_INFO_0,
606 }
607 #[cfg(feature = "Win32_Foundation")]
608 impl ::core::marker::Copy for GET_VIRTUAL_DISK_INFO {}
609 #[cfg(feature = "Win32_Foundation")]
610 impl ::core::clone::Clone for GET_VIRTUAL_DISK_INFO {
611 fn clone(&self) -> Self {
612 *self
613 }
614 }
615 #[repr(C)]
616 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`, `\"Win32_Foundation\"`*"]
617 #[cfg(feature = "Win32_Foundation")]
618 pub union GET_VIRTUAL_DISK_INFO_0 {
619 pub Size: GET_VIRTUAL_DISK_INFO_0_3,
620 pub Identifier: ::windows_sys::core::GUID,
621 pub ParentLocation: GET_VIRTUAL_DISK_INFO_0_1,
622 pub ParentIdentifier: ::windows_sys::core::GUID,
623 pub ParentTimestamp: u32,
624 pub VirtualStorageType: VIRTUAL_STORAGE_TYPE,
625 pub ProviderSubtype: u32,
626 pub Is4kAligned: super::super::Foundation::BOOL,
627 pub IsLoaded: super::super::Foundation::BOOL,
628 pub PhysicalDisk: GET_VIRTUAL_DISK_INFO_0_2,
629 pub VhdPhysicalSectorSize: u32,
630 pub SmallestSafeVirtualSize: u64,
631 pub FragmentationPercentage: u32,
632 pub VirtualDiskId: ::windows_sys::core::GUID,
633 pub ChangeTrackingState: GET_VIRTUAL_DISK_INFO_0_0,
634 }
635 #[cfg(feature = "Win32_Foundation")]
636 impl ::core::marker::Copy for GET_VIRTUAL_DISK_INFO_0 {}
637 #[cfg(feature = "Win32_Foundation")]
638 impl ::core::clone::Clone for GET_VIRTUAL_DISK_INFO_0 {
639 fn clone(&self) -> Self {
640 *self
641 }
642 }
643 #[repr(C)]
644 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`, `\"Win32_Foundation\"`*"]
645 #[cfg(feature = "Win32_Foundation")]
646 pub struct GET_VIRTUAL_DISK_INFO_0_0 {
647 pub Enabled: super::super::Foundation::BOOL,
648 pub NewerChanges: super::super::Foundation::BOOL,
649 pub MostRecentId: [u16; 1],
650 }
651 #[cfg(feature = "Win32_Foundation")]
652 impl ::core::marker::Copy for GET_VIRTUAL_DISK_INFO_0_0 {}
653 #[cfg(feature = "Win32_Foundation")]
654 impl ::core::clone::Clone for GET_VIRTUAL_DISK_INFO_0_0 {
655 fn clone(&self) -> Self {
656 *self
657 }
658 }
659 #[repr(C)]
660 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`, `\"Win32_Foundation\"`*"]
661 #[cfg(feature = "Win32_Foundation")]
662 pub struct GET_VIRTUAL_DISK_INFO_0_1 {
663 pub ParentResolved: super::super::Foundation::BOOL,
664 pub ParentLocationBuffer: [u16; 1],
665 }
666 #[cfg(feature = "Win32_Foundation")]
667 impl ::core::marker::Copy for GET_VIRTUAL_DISK_INFO_0_1 {}
668 #[cfg(feature = "Win32_Foundation")]
669 impl ::core::clone::Clone for GET_VIRTUAL_DISK_INFO_0_1 {
670 fn clone(&self) -> Self {
671 *self
672 }
673 }
674 #[repr(C)]
675 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`, `\"Win32_Foundation\"`*"]
676 #[cfg(feature = "Win32_Foundation")]
677 pub struct GET_VIRTUAL_DISK_INFO_0_2 {
678 pub LogicalSectorSize: u32,
679 pub PhysicalSectorSize: u32,
680 pub IsRemote: super::super::Foundation::BOOL,
681 }
682 #[cfg(feature = "Win32_Foundation")]
683 impl ::core::marker::Copy for GET_VIRTUAL_DISK_INFO_0_2 {}
684 #[cfg(feature = "Win32_Foundation")]
685 impl ::core::clone::Clone for GET_VIRTUAL_DISK_INFO_0_2 {
686 fn clone(&self) -> Self {
687 *self
688 }
689 }
690 #[repr(C)]
691 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`, `\"Win32_Foundation\"`*"]
692 #[cfg(feature = "Win32_Foundation")]
693 pub struct GET_VIRTUAL_DISK_INFO_0_3 {
694 pub VirtualSize: u64,
695 pub PhysicalSize: u64,
696 pub BlockSize: u32,
697 pub SectorSize: u32,
698 }
699 #[cfg(feature = "Win32_Foundation")]
700 impl ::core::marker::Copy for GET_VIRTUAL_DISK_INFO_0_3 {}
701 #[cfg(feature = "Win32_Foundation")]
702 impl ::core::clone::Clone for GET_VIRTUAL_DISK_INFO_0_3 {
703 fn clone(&self) -> Self {
704 *self
705 }
706 }
707 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
708 pub type GET_VIRTUAL_DISK_INFO_VERSION = i32;
709 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
710 pub const GET_VIRTUAL_DISK_INFO_UNSPECIFIED: GET_VIRTUAL_DISK_INFO_VERSION = 0i32;
711 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
712 pub const GET_VIRTUAL_DISK_INFO_SIZE: GET_VIRTUAL_DISK_INFO_VERSION = 1i32;
713 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
714 pub const GET_VIRTUAL_DISK_INFO_IDENTIFIER: GET_VIRTUAL_DISK_INFO_VERSION = 2i32;
715 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
716 pub const GET_VIRTUAL_DISK_INFO_PARENT_LOCATION: GET_VIRTUAL_DISK_INFO_VERSION = 3i32;
717 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
718 pub const GET_VIRTUAL_DISK_INFO_PARENT_IDENTIFIER: GET_VIRTUAL_DISK_INFO_VERSION = 4i32;
719 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
720 pub const GET_VIRTUAL_DISK_INFO_PARENT_TIMESTAMP: GET_VIRTUAL_DISK_INFO_VERSION = 5i32;
721 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
722 pub const GET_VIRTUAL_DISK_INFO_VIRTUAL_STORAGE_TYPE: GET_VIRTUAL_DISK_INFO_VERSION = 6i32;
723 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
724 pub const GET_VIRTUAL_DISK_INFO_PROVIDER_SUBTYPE: GET_VIRTUAL_DISK_INFO_VERSION = 7i32;
725 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
726 pub const GET_VIRTUAL_DISK_INFO_IS_4K_ALIGNED: GET_VIRTUAL_DISK_INFO_VERSION = 8i32;
727 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
728 pub const GET_VIRTUAL_DISK_INFO_PHYSICAL_DISK: GET_VIRTUAL_DISK_INFO_VERSION = 9i32;
729 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
730 pub const GET_VIRTUAL_DISK_INFO_VHD_PHYSICAL_SECTOR_SIZE: GET_VIRTUAL_DISK_INFO_VERSION = 10i32;
731 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
732 pub const GET_VIRTUAL_DISK_INFO_SMALLEST_SAFE_VIRTUAL_SIZE: GET_VIRTUAL_DISK_INFO_VERSION = 11i32;
733 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
734 pub const GET_VIRTUAL_DISK_INFO_FRAGMENTATION: GET_VIRTUAL_DISK_INFO_VERSION = 12i32;
735 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
736 pub const GET_VIRTUAL_DISK_INFO_IS_LOADED: GET_VIRTUAL_DISK_INFO_VERSION = 13i32;
737 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
738 pub const GET_VIRTUAL_DISK_INFO_VIRTUAL_DISK_ID: GET_VIRTUAL_DISK_INFO_VERSION = 14i32;
739 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
740 pub const GET_VIRTUAL_DISK_INFO_CHANGE_TRACKING_STATE: GET_VIRTUAL_DISK_INFO_VERSION = 15i32;
741 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
742 pub const MERGE_VIRTUAL_DISK_DEFAULT_MERGE_DEPTH: u32 = 1u32;
743 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
744 pub type MERGE_VIRTUAL_DISK_FLAG = u32;
745 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
746 pub const MERGE_VIRTUAL_DISK_FLAG_NONE: MERGE_VIRTUAL_DISK_FLAG = 0u32;
747 #[repr(C)]
748 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
749 pub struct MERGE_VIRTUAL_DISK_PARAMETERS {
750 pub Version: MERGE_VIRTUAL_DISK_VERSION,
751 pub Anonymous: MERGE_VIRTUAL_DISK_PARAMETERS_0,
752 }
753 impl ::core::marker::Copy for MERGE_VIRTUAL_DISK_PARAMETERS {}
754 impl ::core::clone::Clone for MERGE_VIRTUAL_DISK_PARAMETERS {
755 fn clone(&self) -> Self {
756 *self
757 }
758 }
759 #[repr(C)]
760 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
761 pub union MERGE_VIRTUAL_DISK_PARAMETERS_0 {
762 pub Version1: MERGE_VIRTUAL_DISK_PARAMETERS_0_0,
763 pub Version2: MERGE_VIRTUAL_DISK_PARAMETERS_0_1,
764 }
765 impl ::core::marker::Copy for MERGE_VIRTUAL_DISK_PARAMETERS_0 {}
766 impl ::core::clone::Clone for MERGE_VIRTUAL_DISK_PARAMETERS_0 {
767 fn clone(&self) -> Self {
768 *self
769 }
770 }
771 #[repr(C)]
772 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
773 pub struct MERGE_VIRTUAL_DISK_PARAMETERS_0_0 {
774 pub MergeDepth: u32,
775 }
776 impl ::core::marker::Copy for MERGE_VIRTUAL_DISK_PARAMETERS_0_0 {}
777 impl ::core::clone::Clone for MERGE_VIRTUAL_DISK_PARAMETERS_0_0 {
778 fn clone(&self) -> Self {
779 *self
780 }
781 }
782 #[repr(C)]
783 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
784 pub struct MERGE_VIRTUAL_DISK_PARAMETERS_0_1 {
785 pub MergeSourceDepth: u32,
786 pub MergeTargetDepth: u32,
787 }
788 impl ::core::marker::Copy for MERGE_VIRTUAL_DISK_PARAMETERS_0_1 {}
789 impl ::core::clone::Clone for MERGE_VIRTUAL_DISK_PARAMETERS_0_1 {
790 fn clone(&self) -> Self {
791 *self
792 }
793 }
794 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
795 pub type MERGE_VIRTUAL_DISK_VERSION = i32;
796 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
797 pub const MERGE_VIRTUAL_DISK_VERSION_UNSPECIFIED: MERGE_VIRTUAL_DISK_VERSION = 0i32;
798 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
799 pub const MERGE_VIRTUAL_DISK_VERSION_1: MERGE_VIRTUAL_DISK_VERSION = 1i32;
800 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
801 pub const MERGE_VIRTUAL_DISK_VERSION_2: MERGE_VIRTUAL_DISK_VERSION = 2i32;
802 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
803 pub type MIRROR_VIRTUAL_DISK_FLAG = u32;
804 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
805 pub const MIRROR_VIRTUAL_DISK_FLAG_NONE: MIRROR_VIRTUAL_DISK_FLAG = 0u32;
806 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
807 pub const MIRROR_VIRTUAL_DISK_FLAG_EXISTING_FILE: MIRROR_VIRTUAL_DISK_FLAG = 1u32;
808 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
809 pub const MIRROR_VIRTUAL_DISK_FLAG_SKIP_MIRROR_ACTIVATION: MIRROR_VIRTUAL_DISK_FLAG = 2u32;
810 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
811 pub const MIRROR_VIRTUAL_DISK_FLAG_ENABLE_SMB_COMPRESSION: MIRROR_VIRTUAL_DISK_FLAG = 4u32;
812 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
813 pub const MIRROR_VIRTUAL_DISK_FLAG_IS_LIVE_MIGRATION: MIRROR_VIRTUAL_DISK_FLAG = 8u32;
814 #[repr(C)]
815 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
816 pub struct MIRROR_VIRTUAL_DISK_PARAMETERS {
817 pub Version: MIRROR_VIRTUAL_DISK_VERSION,
818 pub Anonymous: MIRROR_VIRTUAL_DISK_PARAMETERS_0,
819 }
820 impl ::core::marker::Copy for MIRROR_VIRTUAL_DISK_PARAMETERS {}
821 impl ::core::clone::Clone for MIRROR_VIRTUAL_DISK_PARAMETERS {
822 fn clone(&self) -> Self {
823 *self
824 }
825 }
826 #[repr(C)]
827 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
828 pub union MIRROR_VIRTUAL_DISK_PARAMETERS_0 {
829 pub Version1: MIRROR_VIRTUAL_DISK_PARAMETERS_0_0,
830 }
831 impl ::core::marker::Copy for MIRROR_VIRTUAL_DISK_PARAMETERS_0 {}
832 impl ::core::clone::Clone for MIRROR_VIRTUAL_DISK_PARAMETERS_0 {
833 fn clone(&self) -> Self {
834 *self
835 }
836 }
837 #[repr(C)]
838 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
839 pub struct MIRROR_VIRTUAL_DISK_PARAMETERS_0_0 {
840 pub MirrorVirtualDiskPath: ::windows_sys::core::PCWSTR,
841 }
842 impl ::core::marker::Copy for MIRROR_VIRTUAL_DISK_PARAMETERS_0_0 {}
843 impl ::core::clone::Clone for MIRROR_VIRTUAL_DISK_PARAMETERS_0_0 {
844 fn clone(&self) -> Self {
845 *self
846 }
847 }
848 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
849 pub type MIRROR_VIRTUAL_DISK_VERSION = i32;
850 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
851 pub const MIRROR_VIRTUAL_DISK_VERSION_UNSPECIFIED: MIRROR_VIRTUAL_DISK_VERSION = 0i32;
852 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
853 pub const MIRROR_VIRTUAL_DISK_VERSION_1: MIRROR_VIRTUAL_DISK_VERSION = 1i32;
854 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
855 pub type MODIFY_VHDSET_FLAG = u32;
856 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
857 pub const MODIFY_VHDSET_FLAG_NONE: MODIFY_VHDSET_FLAG = 0u32;
858 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
859 pub const MODIFY_VHDSET_FLAG_WRITEABLE_SNAPSHOT: MODIFY_VHDSET_FLAG = 1u32;
860 #[repr(C)]
861 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
862 pub struct MODIFY_VHDSET_PARAMETERS {
863 pub Version: MODIFY_VHDSET_VERSION,
864 pub Anonymous: MODIFY_VHDSET_PARAMETERS_0,
865 }
866 impl ::core::marker::Copy for MODIFY_VHDSET_PARAMETERS {}
867 impl ::core::clone::Clone for MODIFY_VHDSET_PARAMETERS {
868 fn clone(&self) -> Self {
869 *self
870 }
871 }
872 #[repr(C)]
873 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
874 pub union MODIFY_VHDSET_PARAMETERS_0 {
875 pub SnapshotPath: MODIFY_VHDSET_PARAMETERS_0_0,
876 pub SnapshotId: ::windows_sys::core::GUID,
877 pub DefaultFilePath: ::windows_sys::core::PCWSTR,
878 }
879 impl ::core::marker::Copy for MODIFY_VHDSET_PARAMETERS_0 {}
880 impl ::core::clone::Clone for MODIFY_VHDSET_PARAMETERS_0 {
881 fn clone(&self) -> Self {
882 *self
883 }
884 }
885 #[repr(C)]
886 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
887 pub struct MODIFY_VHDSET_PARAMETERS_0_0 {
888 pub SnapshotId: ::windows_sys::core::GUID,
889 pub SnapshotFilePath: ::windows_sys::core::PCWSTR,
890 }
891 impl ::core::marker::Copy for MODIFY_VHDSET_PARAMETERS_0_0 {}
892 impl ::core::clone::Clone for MODIFY_VHDSET_PARAMETERS_0_0 {
893 fn clone(&self) -> Self {
894 *self
895 }
896 }
897 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
898 pub type MODIFY_VHDSET_VERSION = i32;
899 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
900 pub const MODIFY_VHDSET_UNSPECIFIED: MODIFY_VHDSET_VERSION = 0i32;
901 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
902 pub const MODIFY_VHDSET_SNAPSHOT_PATH: MODIFY_VHDSET_VERSION = 1i32;
903 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
904 pub const MODIFY_VHDSET_REMOVE_SNAPSHOT: MODIFY_VHDSET_VERSION = 2i32;
905 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
906 pub const MODIFY_VHDSET_DEFAULT_SNAPSHOT_PATH: MODIFY_VHDSET_VERSION = 3i32;
907 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
908 pub type OPEN_VIRTUAL_DISK_FLAG = u32;
909 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
910 pub const OPEN_VIRTUAL_DISK_FLAG_NONE: OPEN_VIRTUAL_DISK_FLAG = 0u32;
911 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
912 pub const OPEN_VIRTUAL_DISK_FLAG_NO_PARENTS: OPEN_VIRTUAL_DISK_FLAG = 1u32;
913 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
914 pub const OPEN_VIRTUAL_DISK_FLAG_BLANK_FILE: OPEN_VIRTUAL_DISK_FLAG = 2u32;
915 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
916 pub const OPEN_VIRTUAL_DISK_FLAG_BOOT_DRIVE: OPEN_VIRTUAL_DISK_FLAG = 4u32;
917 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
918 pub const OPEN_VIRTUAL_DISK_FLAG_CACHED_IO: OPEN_VIRTUAL_DISK_FLAG = 8u32;
919 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
920 pub const OPEN_VIRTUAL_DISK_FLAG_CUSTOM_DIFF_CHAIN: OPEN_VIRTUAL_DISK_FLAG = 16u32;
921 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
922 pub const OPEN_VIRTUAL_DISK_FLAG_PARENT_CACHED_IO: OPEN_VIRTUAL_DISK_FLAG = 32u32;
923 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
924 pub const OPEN_VIRTUAL_DISK_FLAG_VHDSET_FILE_ONLY: OPEN_VIRTUAL_DISK_FLAG = 64u32;
925 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
926 pub const OPEN_VIRTUAL_DISK_FLAG_IGNORE_RELATIVE_PARENT_LOCATOR: OPEN_VIRTUAL_DISK_FLAG = 128u32;
927 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
928 pub const OPEN_VIRTUAL_DISK_FLAG_NO_WRITE_HARDENING: OPEN_VIRTUAL_DISK_FLAG = 256u32;
929 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
930 pub const OPEN_VIRTUAL_DISK_FLAG_SUPPORT_COMPRESSED_VOLUMES: OPEN_VIRTUAL_DISK_FLAG = 512u32;
931 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
932 pub const OPEN_VIRTUAL_DISK_FLAG_SUPPORT_SPARSE_FILES_ANY_FS: OPEN_VIRTUAL_DISK_FLAG = 1024u32;
933 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
934 pub const OPEN_VIRTUAL_DISK_FLAG_SUPPORT_ENCRYPTED_FILES: OPEN_VIRTUAL_DISK_FLAG = 2048u32;
935 #[repr(C)]
936 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`, `\"Win32_Foundation\"`*"]
937 #[cfg(feature = "Win32_Foundation")]
938 pub struct OPEN_VIRTUAL_DISK_PARAMETERS {
939 pub Version: OPEN_VIRTUAL_DISK_VERSION,
940 pub Anonymous: OPEN_VIRTUAL_DISK_PARAMETERS_0,
941 }
942 #[cfg(feature = "Win32_Foundation")]
943 impl ::core::marker::Copy for OPEN_VIRTUAL_DISK_PARAMETERS {}
944 #[cfg(feature = "Win32_Foundation")]
945 impl ::core::clone::Clone for OPEN_VIRTUAL_DISK_PARAMETERS {
946 fn clone(&self) -> Self {
947 *self
948 }
949 }
950 #[repr(C)]
951 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`, `\"Win32_Foundation\"`*"]
952 #[cfg(feature = "Win32_Foundation")]
953 pub union OPEN_VIRTUAL_DISK_PARAMETERS_0 {
954 pub Version1: OPEN_VIRTUAL_DISK_PARAMETERS_0_0,
955 pub Version2: OPEN_VIRTUAL_DISK_PARAMETERS_0_1,
956 pub Version3: OPEN_VIRTUAL_DISK_PARAMETERS_0_2,
957 }
958 #[cfg(feature = "Win32_Foundation")]
959 impl ::core::marker::Copy for OPEN_VIRTUAL_DISK_PARAMETERS_0 {}
960 #[cfg(feature = "Win32_Foundation")]
961 impl ::core::clone::Clone for OPEN_VIRTUAL_DISK_PARAMETERS_0 {
962 fn clone(&self) -> Self {
963 *self
964 }
965 }
966 #[repr(C)]
967 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`, `\"Win32_Foundation\"`*"]
968 #[cfg(feature = "Win32_Foundation")]
969 pub struct OPEN_VIRTUAL_DISK_PARAMETERS_0_0 {
970 pub RWDepth: u32,
971 }
972 #[cfg(feature = "Win32_Foundation")]
973 impl ::core::marker::Copy for OPEN_VIRTUAL_DISK_PARAMETERS_0_0 {}
974 #[cfg(feature = "Win32_Foundation")]
975 impl ::core::clone::Clone for OPEN_VIRTUAL_DISK_PARAMETERS_0_0 {
976 fn clone(&self) -> Self {
977 *self
978 }
979 }
980 #[repr(C)]
981 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`, `\"Win32_Foundation\"`*"]
982 #[cfg(feature = "Win32_Foundation")]
983 pub struct OPEN_VIRTUAL_DISK_PARAMETERS_0_1 {
984 pub GetInfoOnly: super::super::Foundation::BOOL,
985 pub ReadOnly: super::super::Foundation::BOOL,
986 pub ResiliencyGuid: ::windows_sys::core::GUID,
987 }
988 #[cfg(feature = "Win32_Foundation")]
989 impl ::core::marker::Copy for OPEN_VIRTUAL_DISK_PARAMETERS_0_1 {}
990 #[cfg(feature = "Win32_Foundation")]
991 impl ::core::clone::Clone for OPEN_VIRTUAL_DISK_PARAMETERS_0_1 {
992 fn clone(&self) -> Self {
993 *self
994 }
995 }
996 #[repr(C)]
997 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`, `\"Win32_Foundation\"`*"]
998 #[cfg(feature = "Win32_Foundation")]
999 pub struct OPEN_VIRTUAL_DISK_PARAMETERS_0_2 {
1000 pub GetInfoOnly: super::super::Foundation::BOOL,
1001 pub ReadOnly: super::super::Foundation::BOOL,
1002 pub ResiliencyGuid: ::windows_sys::core::GUID,
1003 pub SnapshotId: ::windows_sys::core::GUID,
1004 }
1005 #[cfg(feature = "Win32_Foundation")]
1006 impl ::core::marker::Copy for OPEN_VIRTUAL_DISK_PARAMETERS_0_2 {}
1007 #[cfg(feature = "Win32_Foundation")]
1008 impl ::core::clone::Clone for OPEN_VIRTUAL_DISK_PARAMETERS_0_2 {
1009 fn clone(&self) -> Self {
1010 *self
1011 }
1012 }
1013 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
1014 pub const OPEN_VIRTUAL_DISK_RW_DEPTH_DEFAULT: u32 = 1u32;
1015 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
1016 pub type OPEN_VIRTUAL_DISK_VERSION = i32;
1017 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
1018 pub const OPEN_VIRTUAL_DISK_VERSION_UNSPECIFIED: OPEN_VIRTUAL_DISK_VERSION = 0i32;
1019 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
1020 pub const OPEN_VIRTUAL_DISK_VERSION_1: OPEN_VIRTUAL_DISK_VERSION = 1i32;
1021 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
1022 pub const OPEN_VIRTUAL_DISK_VERSION_2: OPEN_VIRTUAL_DISK_VERSION = 2i32;
1023 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
1024 pub const OPEN_VIRTUAL_DISK_VERSION_3: OPEN_VIRTUAL_DISK_VERSION = 3i32;
1025 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
1026 pub type QUERY_CHANGES_VIRTUAL_DISK_FLAG = u32;
1027 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
1028 pub const QUERY_CHANGES_VIRTUAL_DISK_FLAG_NONE: QUERY_CHANGES_VIRTUAL_DISK_FLAG = 0u32;
1029 #[repr(C)]
1030 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
1031 pub struct QUERY_CHANGES_VIRTUAL_DISK_RANGE {
1032 pub ByteOffset: u64,
1033 pub ByteLength: u64,
1034 pub Reserved: u64,
1035 }
1036 impl ::core::marker::Copy for QUERY_CHANGES_VIRTUAL_DISK_RANGE {}
1037 impl ::core::clone::Clone for QUERY_CHANGES_VIRTUAL_DISK_RANGE {
1038 fn clone(&self) -> Self {
1039 *self
1040 }
1041 }
1042 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
1043 pub type RAW_SCSI_VIRTUAL_DISK_FLAG = u32;
1044 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
1045 pub const RAW_SCSI_VIRTUAL_DISK_FLAG_NONE: RAW_SCSI_VIRTUAL_DISK_FLAG = 0u32;
1046 #[repr(C)]
1047 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`, `\"Win32_Foundation\"`*"]
1048 #[cfg(feature = "Win32_Foundation")]
1049 pub struct RAW_SCSI_VIRTUAL_DISK_PARAMETERS {
1050 pub Version: RAW_SCSI_VIRTUAL_DISK_VERSION,
1051 pub Anonymous: RAW_SCSI_VIRTUAL_DISK_PARAMETERS_0,
1052 }
1053 #[cfg(feature = "Win32_Foundation")]
1054 impl ::core::marker::Copy for RAW_SCSI_VIRTUAL_DISK_PARAMETERS {}
1055 #[cfg(feature = "Win32_Foundation")]
1056 impl ::core::clone::Clone for RAW_SCSI_VIRTUAL_DISK_PARAMETERS {
1057 fn clone(&self) -> Self {
1058 *self
1059 }
1060 }
1061 #[repr(C)]
1062 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`, `\"Win32_Foundation\"`*"]
1063 #[cfg(feature = "Win32_Foundation")]
1064 pub union RAW_SCSI_VIRTUAL_DISK_PARAMETERS_0 {
1065 pub Version1: RAW_SCSI_VIRTUAL_DISK_PARAMETERS_0_0,
1066 }
1067 #[cfg(feature = "Win32_Foundation")]
1068 impl ::core::marker::Copy for RAW_SCSI_VIRTUAL_DISK_PARAMETERS_0 {}
1069 #[cfg(feature = "Win32_Foundation")]
1070 impl ::core::clone::Clone for RAW_SCSI_VIRTUAL_DISK_PARAMETERS_0 {
1071 fn clone(&self) -> Self {
1072 *self
1073 }
1074 }
1075 #[repr(C)]
1076 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`, `\"Win32_Foundation\"`*"]
1077 #[cfg(feature = "Win32_Foundation")]
1078 pub struct RAW_SCSI_VIRTUAL_DISK_PARAMETERS_0_0 {
1079 pub RSVDHandle: super::super::Foundation::BOOL,
1080 pub DataIn: u8,
1081 pub CdbLength: u8,
1082 pub SenseInfoLength: u8,
1083 pub SrbFlags: u32,
1084 pub DataTransferLength: u32,
1085 pub DataBuffer: *mut ::core::ffi::c_void,
1086 pub SenseInfo: *mut u8,
1087 pub Cdb: *mut u8,
1088 }
1089 #[cfg(feature = "Win32_Foundation")]
1090 impl ::core::marker::Copy for RAW_SCSI_VIRTUAL_DISK_PARAMETERS_0_0 {}
1091 #[cfg(feature = "Win32_Foundation")]
1092 impl ::core::clone::Clone for RAW_SCSI_VIRTUAL_DISK_PARAMETERS_0_0 {
1093 fn clone(&self) -> Self {
1094 *self
1095 }
1096 }
1097 #[repr(C)]
1098 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
1099 pub struct RAW_SCSI_VIRTUAL_DISK_RESPONSE {
1100 pub Version: RAW_SCSI_VIRTUAL_DISK_VERSION,
1101 pub Anonymous: RAW_SCSI_VIRTUAL_DISK_RESPONSE_0,
1102 }
1103 impl ::core::marker::Copy for RAW_SCSI_VIRTUAL_DISK_RESPONSE {}
1104 impl ::core::clone::Clone for RAW_SCSI_VIRTUAL_DISK_RESPONSE {
1105 fn clone(&self) -> Self {
1106 *self
1107 }
1108 }
1109 #[repr(C)]
1110 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
1111 pub union RAW_SCSI_VIRTUAL_DISK_RESPONSE_0 {
1112 pub Version1: RAW_SCSI_VIRTUAL_DISK_RESPONSE_0_0,
1113 }
1114 impl ::core::marker::Copy for RAW_SCSI_VIRTUAL_DISK_RESPONSE_0 {}
1115 impl ::core::clone::Clone for RAW_SCSI_VIRTUAL_DISK_RESPONSE_0 {
1116 fn clone(&self) -> Self {
1117 *self
1118 }
1119 }
1120 #[repr(C)]
1121 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
1122 pub struct RAW_SCSI_VIRTUAL_DISK_RESPONSE_0_0 {
1123 pub ScsiStatus: u8,
1124 pub SenseInfoLength: u8,
1125 pub DataTransferLength: u32,
1126 }
1127 impl ::core::marker::Copy for RAW_SCSI_VIRTUAL_DISK_RESPONSE_0_0 {}
1128 impl ::core::clone::Clone for RAW_SCSI_VIRTUAL_DISK_RESPONSE_0_0 {
1129 fn clone(&self) -> Self {
1130 *self
1131 }
1132 }
1133 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
1134 pub type RAW_SCSI_VIRTUAL_DISK_VERSION = i32;
1135 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
1136 pub const RAW_SCSI_VIRTUAL_DISK_VERSION_UNSPECIFIED: RAW_SCSI_VIRTUAL_DISK_VERSION = 0i32;
1137 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
1138 pub const RAW_SCSI_VIRTUAL_DISK_VERSION_1: RAW_SCSI_VIRTUAL_DISK_VERSION = 1i32;
1139 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
1140 pub type RESIZE_VIRTUAL_DISK_FLAG = u32;
1141 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
1142 pub const RESIZE_VIRTUAL_DISK_FLAG_NONE: RESIZE_VIRTUAL_DISK_FLAG = 0u32;
1143 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
1144 pub const RESIZE_VIRTUAL_DISK_FLAG_ALLOW_UNSAFE_VIRTUAL_SIZE: RESIZE_VIRTUAL_DISK_FLAG = 1u32;
1145 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
1146 pub const RESIZE_VIRTUAL_DISK_FLAG_RESIZE_TO_SMALLEST_SAFE_VIRTUAL_SIZE: RESIZE_VIRTUAL_DISK_FLAG = 2u32;
1147 #[repr(C)]
1148 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
1149 pub struct RESIZE_VIRTUAL_DISK_PARAMETERS {
1150 pub Version: RESIZE_VIRTUAL_DISK_VERSION,
1151 pub Anonymous: RESIZE_VIRTUAL_DISK_PARAMETERS_0,
1152 }
1153 impl ::core::marker::Copy for RESIZE_VIRTUAL_DISK_PARAMETERS {}
1154 impl ::core::clone::Clone for RESIZE_VIRTUAL_DISK_PARAMETERS {
1155 fn clone(&self) -> Self {
1156 *self
1157 }
1158 }
1159 #[repr(C)]
1160 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
1161 pub union RESIZE_VIRTUAL_DISK_PARAMETERS_0 {
1162 pub Version1: RESIZE_VIRTUAL_DISK_PARAMETERS_0_0,
1163 }
1164 impl ::core::marker::Copy for RESIZE_VIRTUAL_DISK_PARAMETERS_0 {}
1165 impl ::core::clone::Clone for RESIZE_VIRTUAL_DISK_PARAMETERS_0 {
1166 fn clone(&self) -> Self {
1167 *self
1168 }
1169 }
1170 #[repr(C)]
1171 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
1172 pub struct RESIZE_VIRTUAL_DISK_PARAMETERS_0_0 {
1173 pub NewSize: u64,
1174 }
1175 impl ::core::marker::Copy for RESIZE_VIRTUAL_DISK_PARAMETERS_0_0 {}
1176 impl ::core::clone::Clone for RESIZE_VIRTUAL_DISK_PARAMETERS_0_0 {
1177 fn clone(&self) -> Self {
1178 *self
1179 }
1180 }
1181 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
1182 pub type RESIZE_VIRTUAL_DISK_VERSION = i32;
1183 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
1184 pub const RESIZE_VIRTUAL_DISK_VERSION_UNSPECIFIED: RESIZE_VIRTUAL_DISK_VERSION = 0i32;
1185 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
1186 pub const RESIZE_VIRTUAL_DISK_VERSION_1: RESIZE_VIRTUAL_DISK_VERSION = 1i32;
1187 #[repr(C)]
1188 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`, `\"Win32_Foundation\"`*"]
1189 #[cfg(feature = "Win32_Foundation")]
1190 pub struct SET_VIRTUAL_DISK_INFO {
1191 pub Version: SET_VIRTUAL_DISK_INFO_VERSION,
1192 pub Anonymous: SET_VIRTUAL_DISK_INFO_0,
1193 }
1194 #[cfg(feature = "Win32_Foundation")]
1195 impl ::core::marker::Copy for SET_VIRTUAL_DISK_INFO {}
1196 #[cfg(feature = "Win32_Foundation")]
1197 impl ::core::clone::Clone for SET_VIRTUAL_DISK_INFO {
1198 fn clone(&self) -> Self {
1199 *self
1200 }
1201 }
1202 #[repr(C)]
1203 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`, `\"Win32_Foundation\"`*"]
1204 #[cfg(feature = "Win32_Foundation")]
1205 pub union SET_VIRTUAL_DISK_INFO_0 {
1206 pub ParentFilePath: ::windows_sys::core::PCWSTR,
1207 pub UniqueIdentifier: ::windows_sys::core::GUID,
1208 pub ParentPathWithDepthInfo: SET_VIRTUAL_DISK_INFO_0_1,
1209 pub VhdPhysicalSectorSize: u32,
1210 pub VirtualDiskId: ::windows_sys::core::GUID,
1211 pub ChangeTrackingEnabled: super::super::Foundation::BOOL,
1212 pub ParentLocator: SET_VIRTUAL_DISK_INFO_0_0,
1213 }
1214 #[cfg(feature = "Win32_Foundation")]
1215 impl ::core::marker::Copy for SET_VIRTUAL_DISK_INFO_0 {}
1216 #[cfg(feature = "Win32_Foundation")]
1217 impl ::core::clone::Clone for SET_VIRTUAL_DISK_INFO_0 {
1218 fn clone(&self) -> Self {
1219 *self
1220 }
1221 }
1222 #[repr(C)]
1223 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`, `\"Win32_Foundation\"`*"]
1224 #[cfg(feature = "Win32_Foundation")]
1225 pub struct SET_VIRTUAL_DISK_INFO_0_0 {
1226 pub LinkageId: ::windows_sys::core::GUID,
1227 pub ParentFilePath: ::windows_sys::core::PCWSTR,
1228 }
1229 #[cfg(feature = "Win32_Foundation")]
1230 impl ::core::marker::Copy for SET_VIRTUAL_DISK_INFO_0_0 {}
1231 #[cfg(feature = "Win32_Foundation")]
1232 impl ::core::clone::Clone for SET_VIRTUAL_DISK_INFO_0_0 {
1233 fn clone(&self) -> Self {
1234 *self
1235 }
1236 }
1237 #[repr(C)]
1238 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`, `\"Win32_Foundation\"`*"]
1239 #[cfg(feature = "Win32_Foundation")]
1240 pub struct SET_VIRTUAL_DISK_INFO_0_1 {
1241 pub ChildDepth: u32,
1242 pub ParentFilePath: ::windows_sys::core::PCWSTR,
1243 }
1244 #[cfg(feature = "Win32_Foundation")]
1245 impl ::core::marker::Copy for SET_VIRTUAL_DISK_INFO_0_1 {}
1246 #[cfg(feature = "Win32_Foundation")]
1247 impl ::core::clone::Clone for SET_VIRTUAL_DISK_INFO_0_1 {
1248 fn clone(&self) -> Self {
1249 *self
1250 }
1251 }
1252 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
1253 pub type SET_VIRTUAL_DISK_INFO_VERSION = i32;
1254 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
1255 pub const SET_VIRTUAL_DISK_INFO_UNSPECIFIED: SET_VIRTUAL_DISK_INFO_VERSION = 0i32;
1256 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
1257 pub const SET_VIRTUAL_DISK_INFO_PARENT_PATH: SET_VIRTUAL_DISK_INFO_VERSION = 1i32;
1258 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
1259 pub const SET_VIRTUAL_DISK_INFO_IDENTIFIER: SET_VIRTUAL_DISK_INFO_VERSION = 2i32;
1260 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
1261 pub const SET_VIRTUAL_DISK_INFO_PARENT_PATH_WITH_DEPTH: SET_VIRTUAL_DISK_INFO_VERSION = 3i32;
1262 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
1263 pub const SET_VIRTUAL_DISK_INFO_PHYSICAL_SECTOR_SIZE: SET_VIRTUAL_DISK_INFO_VERSION = 4i32;
1264 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
1265 pub const SET_VIRTUAL_DISK_INFO_VIRTUAL_DISK_ID: SET_VIRTUAL_DISK_INFO_VERSION = 5i32;
1266 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
1267 pub const SET_VIRTUAL_DISK_INFO_CHANGE_TRACKING_STATE: SET_VIRTUAL_DISK_INFO_VERSION = 6i32;
1268 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
1269 pub const SET_VIRTUAL_DISK_INFO_PARENT_LOCATOR: SET_VIRTUAL_DISK_INFO_VERSION = 7i32;
1270 #[repr(C)]
1271 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
1272 pub struct STORAGE_DEPENDENCY_INFO {
1273 pub Version: STORAGE_DEPENDENCY_INFO_VERSION,
1274 pub NumberEntries: u32,
1275 pub Anonymous: STORAGE_DEPENDENCY_INFO_0,
1276 }
1277 impl ::core::marker::Copy for STORAGE_DEPENDENCY_INFO {}
1278 impl ::core::clone::Clone for STORAGE_DEPENDENCY_INFO {
1279 fn clone(&self) -> Self {
1280 *self
1281 }
1282 }
1283 #[repr(C)]
1284 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
1285 pub union STORAGE_DEPENDENCY_INFO_0 {
1286 pub Version1Entries: [STORAGE_DEPENDENCY_INFO_TYPE_1; 1],
1287 pub Version2Entries: [STORAGE_DEPENDENCY_INFO_TYPE_2; 1],
1288 }
1289 impl ::core::marker::Copy for STORAGE_DEPENDENCY_INFO_0 {}
1290 impl ::core::clone::Clone for STORAGE_DEPENDENCY_INFO_0 {
1291 fn clone(&self) -> Self {
1292 *self
1293 }
1294 }
1295 #[repr(C)]
1296 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
1297 pub struct STORAGE_DEPENDENCY_INFO_TYPE_1 {
1298 pub DependencyTypeFlags: DEPENDENT_DISK_FLAG,
1299 pub ProviderSpecificFlags: u32,
1300 pub VirtualStorageType: VIRTUAL_STORAGE_TYPE,
1301 }
1302 impl ::core::marker::Copy for STORAGE_DEPENDENCY_INFO_TYPE_1 {}
1303 impl ::core::clone::Clone for STORAGE_DEPENDENCY_INFO_TYPE_1 {
1304 fn clone(&self) -> Self {
1305 *self
1306 }
1307 }
1308 #[repr(C)]
1309 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
1310 pub struct STORAGE_DEPENDENCY_INFO_TYPE_2 {
1311 pub DependencyTypeFlags: DEPENDENT_DISK_FLAG,
1312 pub ProviderSpecificFlags: u32,
1313 pub VirtualStorageType: VIRTUAL_STORAGE_TYPE,
1314 pub AncestorLevel: u32,
1315 pub DependencyDeviceName: ::windows_sys::core::PWSTR,
1316 pub HostVolumeName: ::windows_sys::core::PWSTR,
1317 pub DependentVolumeName: ::windows_sys::core::PWSTR,
1318 pub DependentVolumeRelativePath: ::windows_sys::core::PWSTR,
1319 }
1320 impl ::core::marker::Copy for STORAGE_DEPENDENCY_INFO_TYPE_2 {}
1321 impl ::core::clone::Clone for STORAGE_DEPENDENCY_INFO_TYPE_2 {
1322 fn clone(&self) -> Self {
1323 *self
1324 }
1325 }
1326 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
1327 pub type STORAGE_DEPENDENCY_INFO_VERSION = i32;
1328 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
1329 pub const STORAGE_DEPENDENCY_INFO_VERSION_UNSPECIFIED: STORAGE_DEPENDENCY_INFO_VERSION = 0i32;
1330 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
1331 pub const STORAGE_DEPENDENCY_INFO_VERSION_1: STORAGE_DEPENDENCY_INFO_VERSION = 1i32;
1332 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
1333 pub const STORAGE_DEPENDENCY_INFO_VERSION_2: STORAGE_DEPENDENCY_INFO_VERSION = 2i32;
1334 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
1335 pub type TAKE_SNAPSHOT_VHDSET_FLAG = u32;
1336 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
1337 pub const TAKE_SNAPSHOT_VHDSET_FLAG_NONE: TAKE_SNAPSHOT_VHDSET_FLAG = 0u32;
1338 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
1339 pub const TAKE_SNAPSHOT_VHDSET_FLAG_WRITEABLE: TAKE_SNAPSHOT_VHDSET_FLAG = 1u32;
1340 #[repr(C)]
1341 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
1342 pub struct TAKE_SNAPSHOT_VHDSET_PARAMETERS {
1343 pub Version: TAKE_SNAPSHOT_VHDSET_VERSION,
1344 pub Anonymous: TAKE_SNAPSHOT_VHDSET_PARAMETERS_0,
1345 }
1346 impl ::core::marker::Copy for TAKE_SNAPSHOT_VHDSET_PARAMETERS {}
1347 impl ::core::clone::Clone for TAKE_SNAPSHOT_VHDSET_PARAMETERS {
1348 fn clone(&self) -> Self {
1349 *self
1350 }
1351 }
1352 #[repr(C)]
1353 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
1354 pub union TAKE_SNAPSHOT_VHDSET_PARAMETERS_0 {
1355 pub Version1: TAKE_SNAPSHOT_VHDSET_PARAMETERS_0_0,
1356 }
1357 impl ::core::marker::Copy for TAKE_SNAPSHOT_VHDSET_PARAMETERS_0 {}
1358 impl ::core::clone::Clone for TAKE_SNAPSHOT_VHDSET_PARAMETERS_0 {
1359 fn clone(&self) -> Self {
1360 *self
1361 }
1362 }
1363 #[repr(C)]
1364 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
1365 pub struct TAKE_SNAPSHOT_VHDSET_PARAMETERS_0_0 {
1366 pub SnapshotId: ::windows_sys::core::GUID,
1367 }
1368 impl ::core::marker::Copy for TAKE_SNAPSHOT_VHDSET_PARAMETERS_0_0 {}
1369 impl ::core::clone::Clone for TAKE_SNAPSHOT_VHDSET_PARAMETERS_0_0 {
1370 fn clone(&self) -> Self {
1371 *self
1372 }
1373 }
1374 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
1375 pub type TAKE_SNAPSHOT_VHDSET_VERSION = i32;
1376 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
1377 pub const TAKE_SNAPSHOT_VHDSET_VERSION_UNSPECIFIED: TAKE_SNAPSHOT_VHDSET_VERSION = 0i32;
1378 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
1379 pub const TAKE_SNAPSHOT_VHDSET_VERSION_1: TAKE_SNAPSHOT_VHDSET_VERSION = 1i32;
1380 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
1381 pub type VIRTUAL_DISK_ACCESS_MASK = u32;
1382 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
1383 pub const VIRTUAL_DISK_ACCESS_NONE: VIRTUAL_DISK_ACCESS_MASK = 0u32;
1384 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
1385 pub const VIRTUAL_DISK_ACCESS_ATTACH_RO: VIRTUAL_DISK_ACCESS_MASK = 65536u32;
1386 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
1387 pub const VIRTUAL_DISK_ACCESS_ATTACH_RW: VIRTUAL_DISK_ACCESS_MASK = 131072u32;
1388 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
1389 pub const VIRTUAL_DISK_ACCESS_DETACH: VIRTUAL_DISK_ACCESS_MASK = 262144u32;
1390 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
1391 pub const VIRTUAL_DISK_ACCESS_GET_INFO: VIRTUAL_DISK_ACCESS_MASK = 524288u32;
1392 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
1393 pub const VIRTUAL_DISK_ACCESS_CREATE: VIRTUAL_DISK_ACCESS_MASK = 1048576u32;
1394 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
1395 pub const VIRTUAL_DISK_ACCESS_METAOPS: VIRTUAL_DISK_ACCESS_MASK = 2097152u32;
1396 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
1397 pub const VIRTUAL_DISK_ACCESS_READ: VIRTUAL_DISK_ACCESS_MASK = 851968u32;
1398 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
1399 pub const VIRTUAL_DISK_ACCESS_ALL: VIRTUAL_DISK_ACCESS_MASK = 4128768u32;
1400 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
1401 pub const VIRTUAL_DISK_ACCESS_WRITABLE: VIRTUAL_DISK_ACCESS_MASK = 3276800u32;
1402 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
1403 pub const VIRTUAL_DISK_MAXIMUM_CHANGE_TRACKING_ID_LENGTH: u32 = 256u32;
1404 #[repr(C)]
1405 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
1406 pub struct VIRTUAL_DISK_PROGRESS {
1407 pub OperationStatus: u32,
1408 pub CurrentValue: u64,
1409 pub CompletionValue: u64,
1410 }
1411 impl ::core::marker::Copy for VIRTUAL_DISK_PROGRESS {}
1412 impl ::core::clone::Clone for VIRTUAL_DISK_PROGRESS {
1413 fn clone(&self) -> Self {
1414 *self
1415 }
1416 }
1417 #[repr(C)]
1418 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
1419 pub struct VIRTUAL_STORAGE_TYPE {
1420 pub DeviceId: u32,
1421 pub VendorId: ::windows_sys::core::GUID,
1422 }
1423 impl ::core::marker::Copy for VIRTUAL_STORAGE_TYPE {}
1424 impl ::core::clone::Clone for VIRTUAL_STORAGE_TYPE {
1425 fn clone(&self) -> Self {
1426 *self
1427 }
1428 }
1429 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
1430 pub const VIRTUAL_STORAGE_TYPE_DEVICE_ISO: u32 = 1u32;
1431 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
1432 pub const VIRTUAL_STORAGE_TYPE_DEVICE_UNKNOWN: u32 = 0u32;
1433 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
1434 pub const VIRTUAL_STORAGE_TYPE_DEVICE_VHD: u32 = 2u32;
1435 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
1436 pub const VIRTUAL_STORAGE_TYPE_DEVICE_VHDSET: u32 = 4u32;
1437 #[doc = "*Required features: `\"Win32_Storage_Vhd\"`*"]
1438 pub const VIRTUAL_STORAGE_TYPE_DEVICE_VHDX: u32 = 3u32;
1439 pub const VIRTUAL_STORAGE_TYPE_VENDOR_MICROSOFT: ::windows_sys::core::GUID = ::windows_sys::core::GUID { data1: 3969403628, data2: 41209, data3: 18409, data4: [144, 31, 113, 65, 90, 102, 52, 91] };
1440 pub const VIRTUAL_STORAGE_TYPE_VENDOR_UNKNOWN: ::windows_sys::core::GUID = ::windows_sys::core::GUID { data1: 0, data2: 0, data3: 0, data4: [0, 0, 0, 0, 0, 0, 0, 0] };