| Previous | Next |
| MF_E_INVALID_KEY | MF_E_UNSUPPORTED_CAPTION |
MF_E_BAD_STARTUP_VERSION
What the code tells you
MF_E_BAD_STARTUP_VERSION means MFStartup received a version value that does not match the Media Foundation runtime contract available on the machine.
The result comes from the platform initialization call before any session or source is created. A representative case is a binary built with mismatched declarations or a copied version literal calls a runtime that expects another MF_VERSION.
Evidence to preserve
the exact MF_VERSION value, process bitness, loaded mfplat.dll path and version, headers used at build time, and call flags.
Build a useful incident record
Reproduce without erasing context
- Record and verify: the exact MF_VERSION value, process bitness, loaded mfplat.
- Run the controlled comparison: run a tiny process that calls MFStartup with the documented MF_VERSION from the same SDK and then immediately calls MFShutdown.
Comparison with adjacent conditions
| HRESULT | Meaning in the standard description |
|---|---|
MF_E_UNSUPPORTED_CAPTION | The caption of the given URL is unsupported. |
MF_E_INVALID_POSITION | The operation on the current offset is not permitted. |
MF_E_UNRECOVERABLE_ERROR_OCCURRED | An unrecoverable error has occurred. |
Here, MF_E_DISABLED_IN_SAFEMODE accepts the version but refuses platform startup because of the boot mode.
Resolution and proof
For this occurrence, compile and call MFStartup with the supported version constant; avoid hard-coded guessed numbers.
Authoritative references
Looking for a different code? Search another status or error code.