What does HRESULT 0x00AA0302 (S_IMAPI_WRITE_NOT_IN_PROGRESS) mean?

 
Previous Next
S_IMAPI_COMMAND_HAS_SENSE_DATA S_IMAPI_RAW_IMAGE_TRACK_INDEX_ALREADY_EXISTS

S_IMAPI_WRITE_NOT_IN_PROGRESS

S_IMAPI_WRITE_NOT_IN_PROGRESS is a success status used when an operation queries or changes write state but there is no active write. IMAPI2 data writes are synchronous at the Write call boundary, while progress is delivered through events during the operation; cancellation and status logic therefore need to respect the actual writer lifecycle.

Check whether the caller is racing write completion

  • Record the thread or callback that requested cancellation/status and the last write progress action.
  • Distinguish a write that already completed from a writer object that was never started.
  • Do not map the status to media failure; inspect the earlier write result for the actual outcome.

A common diagnostic mistake is to report this code as the cause of a failed burn when it is only observed by cleanup code after the real write operation has finished. Preserve the first failing HRESULT from Write or the device operation. If cancellation is exposed to users, disable or make it idempotent after completion so a late cancel request does not generate misleading error telemetry.

IDiscFormat2Data::Write · IDiscFormat2Data · IMAPI return values


Looking for a different code? Search another status or error code.