| Previous | Next |
| VDS_E_NO_DRIVELETTER_FLAG | VDS_E_REVERT_ON_CLOSE_SET |
VDS_E_REVERT_ON_CLOSE
IVdsVolume::SetFlags can mark selected volume attributes to be reverted when the volume interface is closed. Microsoft limits this behavior to a specific group of flags such as hidden, read-only, no-default-drive-letter, or shadow-copy attributes. This HRESULT means the caller requested bRevertOnClose without a compatible flag combination.
Why this state matters
Revert-on-close is a lifecycle contract, not a generic transaction around arbitrary volume settings. The temporary flag state is tied to the VDS interface lifetime, and on an MBR basic disk some attributes are disk-scoped. The fix is to validate the requested mask and ownership of the interface rather than adding an unrelated flag merely to satisfy the call.
Diagnostic focus
- Log
ulFlags,bRevertOnClose, and the volume provider/disk style. - Validate the mask against the flag set documented as compatible with revert-on-close.
- Ensure the component that requests temporary flags also owns the VDS interface lifetime that controls reversion.
- Do not add HIDDEN or READONLY solely as a workaround unless that state is actually required by the workflow.
Technical references
IVdsVolume::SetFlags · IVdsVolume::ClearFlags · VDS_VOLUME_FLAG · VDS common return codes · MS-VDS error codes
Looking for a different code? Search another status or error code.
