| Previous | Next |
| VDS_E_COMPRESSION_NOT_SUPPORTED | VDS_E_VDISK_INVALID_OP_STATE |
VDS_E_VDISK_NOT_OPEN
This HRESULT belongs to the VDS virtual-disk object lifecycle. An IVdsVDisk object can exist in the service object list before its backing virtual-disk file has been opened. IVdsVDisk::Open creates the opened-handle representation and returns IVdsOpenVDisk, which exposes attach, detach, compact, merge, and expand operations.
Why this state matters
The important distinction is between discovering a VDS object and opening the virtual disk for an operation. VDS_VDISK_PROPERTIES.State reports the lifecycle state. In the published VDS model, an added object transitions to VDS_VST_OPEN only after Open succeeds. Re-enumerating the object does not substitute for that open step.
Diagnostic focus
- Log the virtual disk object ID, backing path, and current
VDS_VDISK_STATEbefore the failing call. - Confirm that
IVdsVDisk::Opencompleted successfully and that the returnedIVdsOpenVDiskpointer is still held by the caller. - Check the requested access mask and open flags; a failed open must not be hidden by continuing with later operations.
- Do not retry attach, merge, or expand on a newly enumerated
IVdsVDiskobject until the open lifecycle has been completed again.
Technical references
IVdsVDisk · IVdsVDisk::Open · IVdsOpenVDisk · VDS_VDISK_STATE · MS-VDS virtual disk state transitions
Looking for a different code? Search another status or error code.
