| Previous | Next |
| E_IMAPI_DF2RAW_WRITE_NOT_IN_PROGRESS | E_IMAPI_DF2RAW_MEDIA_IS_PREPARED |
E_IMAPI_DF2RAW_MEDIA_IS_NOT_PREPARED
E_IMAPI_DF2RAW_MEDIA_IS_NOT_PREPARED means the raw-CD workflow has not crossed the required PrepareMedia boundary. Microsoft documents put_Recorder and PrepareMedia as prerequisites for WriteMedia; preparation locks the current medium for exclusive access and establishes the DAO session state.
Enforce the documented recorder, prepare, write sequence
- Assign the intended
IDiscRecorder2to the same raw-format object that will perform the write. - Call
PrepareMediaand preserve its HRESULT before submitting the image stream. - Release the prepared session with
ReleaseMediaafter success, cancellation or failure.
Retrying WriteMedia without preparing the same COM object will fail again. This is not evidence that the raw stream is malformed; stream shape is reported by E_IMAPI_DF2RAW_STREAM_NOT_SUPPORTED or lead-in validation. Log the format-object identity and setup sequence so configuration accidentally performed on another instance is easy to distinguish from a media or device problem.
PrepareMedia · WriteMedia · Recorder property
Looking for a different code? Search another status or error code.