| Previous | Next |
| E_IMAPI_DF2DATA_STREAM_TOO_LARGE_FOR_CURRENT_MEDIA | E_IMAPI_DF2DATA_MEDIA_IS_NOT_SUPPORTED |
E_IMAPI_DF2DATA_MEDIA_NOT_BLANK
E_IMAPI_DF2DATA_MEDIA_NOT_BLANK is a specific overwrite-policy failure. IMAPI documents that writing over non-blank media is not allowed unless IDiscFormat2Data::ForceOverwrite is set to VARIANT_TRUE. The property applies to overwritable media types and is distinct from incremental append logic.
Decide explicitly between append and overwrite workflows
- Read
ForceOverwriteandCurrentMediaStatusfrom the same format object. - If preserving existing sessions, use the multisession/import path rather than enabling overwrite merely to suppress the error.
- If destructive replacement is intended and the medium supports it, set
ForceOverwritebefore the write and surface that choice clearly to the user.
The correct response depends on data-retention intent. Blindly enabling overwrite can destroy existing content, while erasing media is not equivalent to importing and extending a prior session. This HRESULT is useful precisely because it stops the writer before a destructive policy is assumed. Record the physical media type and media-state flags with the application’s requested mode.
ForceOverwrite · CurrentMediaStatus · IDiscFormat2Data
Looking for a different code? Search another status or error code.