| Previous | Next |
| VFW_E_DVD_MENU_DOES_NOT_EXIST | VFW_E_DVD_STATE_WRONG_VERSION |
VFW_E_DVD_CMD_CANCELLED
Exact result and bit fields
VFW_E_DVD_CMD_CANCELLED has the unsigned HRESULT value 2147746435 (0x80040283) and the signed 32-bit representation -2147220861. AllStat describes it as “The specified command was either cancelled or no longer exists”. In the operation that produces this result, a DVD navigation command object represents work that was cancelled or no longer exists when queried or waited upon.
The high bit is set, so this value is a failure HRESULT. Its facility field is 4 (FACILITY_ITF) and its low code is 643 (0x0283). These fields classify this result, but they do not identify which filter, thread, device, file or graph generation returned it.
Contract boundary
This result belongs to the legacy DirectShow DVD Navigator contract. DVD state is authored and stateful: domains, user-operation controls, titles, menus, streams, command objects and graph construction each impose different preconditions.
The practical owner to locate for this HRESULT is the DVD Navigator, graph builder, decoder inventory and renderer topology. When handling this result, capture the native result before a wrapper replaces it with a generic exception, and keep the graph generation or object identity with the record.
Evidence worth preserving
Log the interface and method, filter CLSID and friendly name, process and thread, graph state, connected pin names, media-type summary, renderer or device identity where relevant, and the first preceding HRESULT. Record lengths and hashes instead of raw content when the incident includes disc identifiers, navigation state, parental settings and media paths.
- Evidence 1 for this HRESULT: command identity and flags.
- Evidence 2 for this HRESULT: cancellation source and timestamp.
- Evidence 3 for this HRESULT: playback, seek and domain events before the result.
Conditions that can produce it
- Cause 1 for this HRESULT: the application explicitly cancelled the command.
- Cause 2 for this HRESULT: a stop, seek or domain change invalidated queued work.
- Cause 3 for this HRESULT: a newer navigation command superseded the original one.
Step-by-step diagnosis
- Capture it at the first native return, not only at the top-level playback failure.
- identify the exact graph stage described here: a DVD navigation command object represents work that was cancelled or no longer exists when queried or waited upon.
- compare the live object state, topology and input with the documented interface preconditions.
- Before changing filters, drivers, registry data or media for this HRESULT, collect the code-specific evidence below.
- Test one evidence-backed the correction on the smallest reproducible graph.
- Verify that the corrected run no longer returns it and does not merely replace it with a nearby HRESULT.
Retry and recovery
Retry rule for this HRESULT: Retry by creating a new command for the current state when the user intent still applies; do not reuse the cancelled command object. A safe it retry must use a changed capability, state, object generation or input. While recovering from it, preserve cancellation and avoid replaying side effects when the original operation may have partially completed.
Correction strategy
- Action 1 for this HRESULT: treat cancellation as a completed control-flow outcome.
- Action 2 for this HRESULT: remove the command from pending UI state.
- Action 3 for this HRESULT: issue a new command only after validating the current navigator state.
Example incident
A queued PlayChapter command is cancelled when the user selects another title; recognizing cancellation avoids reporting it as a decoder failure. This example keeps the diagnosis at the specific the boundary instead of treating every DirectShow failure as a codec reinstall problem.
Implementation notes
Code that handles it should preserve the original HRESULT, the failed stage and an opaque correlation identifier. After it, do not infer success from partial graph construction, and do not continue using interfaces retained from a graph or device generation that has already changed.
Operational remediation for this HRESULT should favor supported component installation, device configuration and documented DirectShow calls. Manual registry or driver changes are appropriate only when the collected evidence for this HRESULT points to that layer and a rollback is available.
How it differs from nearby results
VFW_E_ALREADY_CANCELLED reports a second cancellation attempt on a generic queued command, while it reports a DVD command that has been cancelled or invalidated. Keep those cases separate in telemetry, UI messages and retry policy because their next actions are different.
Official Microsoft references
- Microsoft: DirectShow error and success codes
- Microsoft: IDvdControl2
- Microsoft: DVD event notification codes
Looking for a different code? Search another status or error code.