What does HRESULT 0x80030202 (STG_E_TERMINATED) mean?

 
Previous Next
STG_E_INCOMPLETE STG_E_FIRMWARE_SLOT_INVALID

STG_E_TERMINATED

STG_E_TERMINATED: exact failure boundary

0x80030202 corresponds to STG_E_TERMINATED. The platform message is The file download has been terminated. This result is returned while a progressive file or storage transfer with cancellation or shutdown support. The diagnostic question is whether the transfer was stopped before completion by a termination request or controlling component.

Evidence to capture

  • Record this result, 0x80030202, the native method name, process and thread IDs, operation ID, component build, architecture, and elapsed time.
  • Capture stream names, offsets, lengths, transaction state, backing path, and the validity of partially written output.
  • Keep IErrorInfo, provider extended status, relevant device/storage events, and the first lower-level failure.
  • When handling this result, release interfaces in child-before-parent order, close native handles once, and do not commit or replace output whose validity is uncertain.

Likely causes to separate

  • The user cancelled the download.
  • The host shut down the binding.
  • Policy or timeout logic deliberately ended the transfer.

Focused diagnostic test

Reproduce the same native call with the same object identity and change one cause candidate at a time. Preserve the first provider or lower-layer result and compare object state before cleanup. A different HRESULT after one controlled change is a new boundary, not proof that the original operation is fully repaired.

Correction

honor cancellation, remove uncertain partial output, and start a new transfer only from an explicit user or policy decision.

Verification

After correction, repeat the operation that returned this result. Verify the intended API operation completes and that any output, ownership transfer or persistent state is valid; do not treat disappearance of the dialog alone as success.

Technical references


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