What does HRESULT 0x80042459 (VDS_E_REVERT_ON_CLOSE_SET) mean?

 
Previous Next
VDS_E_REVERT_ON_CLOSE VDS_E_IA64_BOOT_MIRRORED_TO_MBR

VDS_E_REVERT_ON_CLOSE_SET

This status is about establishing temporary flag ownership. Microsoft documents that if applicable flags are already set, the caller must clear them first and then call SetFlags again with bRevertOnClose=TRUE. VDS cannot safely promise to restore a previous state when the requested temporary flags overlap attributes that were already active before the new lifecycle began.

Why this state matters

The distinction protects preexisting configuration. A client that simply records “clear all flags on close” could remove an administrator- or provider-established read-only, hidden, or shadow-copy attribute. Capture the initial flag mask and perform the documented clear/set sequence only when the application is authorized to manage those flags.

Diagnostic focus

  • Read and store the current volume flag mask before attempting temporary changes.
  • Identify which revert-eligible flags were already set and who owns that policy.
  • Use the documented clear-then-set sequence only for flags the application is allowed to control.
  • After interface close, requery properties to confirm preexisting flags were not unintentionally lost.

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.