1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
// WARNING: this file is auto-generated by xtask gen and may be overwritten
use *;
/// The virtual hard disk is corrupted. The virtual hard disk drive footer is missing.
pub const DRIVE_FOOTER_MISSING : HResultError = from_constant; // ERROR_VHD_DRIVE_FOOTER_MISSING
/// The virtual hard disk is corrupted. The virtual hard disk drive footer checksum does not match the on-disk checksum.
pub const DRIVE_FOOTER_CHECKSUM_MISMATCH : HResultError = from_constant; // ERROR_VHD_DRIVE_FOOTER_CHECKSUM_MISMATCH
/// The virtual hard disk is corrupted. The virtual hard disk drive footer in the virtual hard disk is corrupted.
pub const DRIVE_FOOTER_CORRUPT : HResultError = from_constant; // ERROR_VHD_DRIVE_FOOTER_CORRUPT
/// The system does not recognize the file format of this virtual hard disk.
pub const FORMAT_UNKNOWN : HResultError = from_constant; // ERROR_VHD_FORMAT_UNKNOWN
/// The version does not support this version of the file format.
pub const FORMAT_UNSUPPORTED_VERSION : HResultError = from_constant; // ERROR_VHD_FORMAT_UNSUPPORTED_VERSION
/// The virtual hard disk is corrupted. The sparse header checksum does not match the on-disk checksum.
pub const SPARSE_HEADER_CHECKSUM_MISMATCH : HResultError = from_constant; // ERROR_VHD_SPARSE_HEADER_CHECKSUM_MISMATCH
/// The system does not support this version of the virtual hard disk.This version of the sparse header is not supported.
pub const SPARSE_HEADER_UNSUPPORTED_VERSION : HResultError = from_constant; // ERROR_VHD_SPARSE_HEADER_UNSUPPORTED_VERSION
/// The virtual hard disk is corrupted. The sparse header in the virtual hard disk is corrupt.
pub const SPARSE_HEADER_CORRUPT : HResultError = from_constant; // ERROR_VHD_SPARSE_HEADER_CORRUPT
/// Failed to write to the virtual hard disk failed because the system failed to allocate a new block in the virtual hard disk.
pub const BLOCK_ALLOCATION_FAILURE : HResultError = from_constant; // ERROR_VHD_BLOCK_ALLOCATION_FAILURE
/// The virtual hard disk is corrupted. The block allocation table in the virtual hard disk is corrupt.
pub const BLOCK_ALLOCATION_TABLE_CORRUPT : HResultError = from_constant; // ERROR_VHD_BLOCK_ALLOCATION_TABLE_CORRUPT
/// The system does not support this version of the virtual hard disk. The block size is invalid.
pub const INVALID_BLOCK_SIZE : HResultError = from_constant; // ERROR_VHD_INVALID_BLOCK_SIZE
/// The virtual hard disk is corrupted. The block bitmap does not match with the block data present in the virtual hard disk.
pub const BITMAP_MISMATCH : HResultError = from_constant; // ERROR_VHD_BITMAP_MISMATCH
/// The chain of virtual hard disks is broken. The system cannot locate the parent virtual hard disk for the differencing disk.
pub const PARENT_VHD_NOT_FOUND : HResultError = from_constant; // ERROR_VHD_PARENT_VHD_NOT_FOUND
/// The chain of virtual hard disks is corrupted. There is a mismatch in the identifiers of the parent virtual hard disk and differencing disk.
pub const CHILD_PARENT_ID_MISMATCH : HResultError = from_constant; // ERROR_VHD_CHILD_PARENT_ID_MISMATCH
/// The chain of virtual hard disks is corrupted. The time stamp of the parent virtual hard disk does not match the time stamp of the differencing disk.
pub const CHILD_PARENT_TIMESTAMP_MISMATCH : HResultError = from_constant; // ERROR_VHD_CHILD_PARENT_TIMESTAMP_MISMATCH
/// Failed to read the metadata of the virtual hard disk.
pub const METADATA_READ_FAILURE : HResultError = from_constant; // ERROR_VHD_METADATA_READ_FAILURE
/// Failed to write to the metadata of the virtual hard disk.
pub const METADATA_WRITE_FAILURE : HResultError = from_constant; // ERROR_VHD_METADATA_WRITE_FAILURE
/// The size of the virtual hard disk is not valid.
pub const INVALID_SIZE : HResultError = from_constant; // ERROR_VHD_INVALID_SIZE
/// The file size of this virtual hard disk is not valid.
pub const INVALID_FILE_SIZE : HResultError = from_constant; // ERROR_VHD_INVALID_FILE_SIZE
/// The chain of virtual hard disks is inaccessible. The process has not been granted access rights to the parent virtual hard disk for the differencing disk.
pub const PARENT_VHD_ACCESS_DENIED : HResultError = from_constant; // ERROR_VHD_PARENT_VHD_ACCESS_DENIED
/// The chain of virtual hard disks is corrupted. There is a mismatch in the virtual sizes of the parent virtual hard disk and differencing disk.
pub const CHILD_PARENT_SIZE_MISMATCH : HResultError = from_constant; // ERROR_VHD_CHILD_PARENT_SIZE_MISMATCH
/// The chain of virtual hard disks is corrupted. A differencing disk is indicated in its own parent chain.
pub const DIFFERENCING_CHAIN_CYCLE_DETECTED : HResultError = from_constant; // ERROR_VHD_DIFFERENCING_CHAIN_CYCLE_DETECTED
/// The chain of virtual hard disks is inaccessible. There was an error opening a virtual hard disk further up the chain.
pub const DIFFERENCING_CHAIN_ERROR_IN_PARENT : HResultError = from_constant; // ERROR_VHD_DIFFERENCING_CHAIN_ERROR_IN_PARENT
/// The requested operation cannot be performed on a virtual disk of this type.
pub const INVALID_TYPE : HResultError = from_constant; // ERROR_VHD_INVALID_TYPE
/// The requested operation cannot be performed on the virtual disk in its current state.
pub const INVALID_STATE : HResultError = from_constant; // ERROR_VHD_INVALID_STATE
/// The requested resize operation could not be completed because it might truncate user data residing on the virtual disk.
pub const RESIZE_WOULD_TRUNCATE_DATA : HResultError = from_constant; // ERROR_VHD_RESIZE_WOULD_TRUNCATE_DATA
/// The requested operation could not be completed because the virtual disk's minimum safe size could not be determined.
/// This may be due to a missing or corrupt partition table.
pub const COULD_NOT_COMPUTE_MINIMUM_VIRTUAL_SIZE : HResultError = from_constant; // ERROR_VHD_COULD_NOT_COMPUTE_MINIMUM_VIRTUAL_SIZE
/// The requested operation could not be completed because the virtual disk's size cannot be safely reduced further.
pub const ALREADY_AT_OR_BELOW_MINIMUM_VIRTUAL_SIZE : HResultError = from_constant; // ERROR_VHD_ALREADY_AT_OR_BELOW_MINIMUM_VIRTUAL_SIZE
/// There is not enough space in the virtual disk file for the provided metadata item.
pub const METADATA_FULL : HResultError = from_constant; // ERROR_VHD_METADATA_FULL
/// The specified change tracking identifier is not valid.
pub const INVALID_CHANGE_TRACKING_ID : HResultError = from_constant; // ERROR_VHD_INVALID_CHANGE_TRACKING_ID
/// Change tracking is disabled for the specified virtual hard disk, so no change tracking information is available.
pub const CHANGE_TRACKING_DISABLED : HResultError = from_constant; // ERROR_VHD_CHANGE_TRACKING_DISABLED
/// There is no change tracking data available associated with the specified change tracking identifier.
pub const MISSING_CHANGE_TRACKING_INFORMATION : HResultError = from_constant; // ERROR_VHD_MISSING_CHANGE_TRACKING_INFORMATION
/// The requested operation cannot be performed on the virtual disk as it is currently used in shared mode.
pub const SHARED : HResultError = from_constant; // ERROR_VHD_SHARED