| Previous | Next |
| NS_E_DEVICE_NOT_READY | NS_E_MPDB_GENERIC |
NS_E_DAMAGED_FILE
How to classify this WMP result
The additional test for the damaged file condition is to record hash, container signature, first corrupt structure and whether a complete copy exists elsewhere; that evidence is more useful than reinstalling the Player or changing several unrelated settings at once.
State worth preserving
Capture the damaged file state before the Player advances, reloads, rescans or destroys the owning object:
- What to verify: record hash, container signature, first corrupt structure and whether a complete copy exists elsewhere.
- Artifact: file attributes, owner, ACL and sharing handles for the damaged file reproduction.
- State: bytes received/written, expected length and final hash for the damaged file reproduction.
- Object identity: original URL/path and final redirected or canonical location for the damaged file reproduction.
- Underlying evidence: HTTP status/content type or local CreateFile-style access outcome for the damaged file reproduction.
- Correlation: destination directory, temporary file and final rename/replace result for the damaged file reproduction.
Reproduce without destroying evidence
- Find the first component that returned this result and label that event as the boundary.
- Freeze the input and object identity associated with damaged file before WMP fallback or cleanup changes it.
- Reconstruct the immediately preceding successful state for damaged file, then identify the call or event that crossed into failure.
Related HRESULTs with different meanings
| Result | Different condition |
|---|---|
NS_E_FILE_FAILED_CHECKS | the file fails the Player library admission checks before it can be added |
NS_E_WMP_RECORDING_NOT_ALLOWED | the selected content rights do not permit the requested recording or burn action |
NS_E_SHARING_VIOLATION | another handle’s sharing mode prevents the required WMP file access |
Technical references
- Supported protocols and file types — normative or platform material relevant to this HRESULT.
- File name extensions — API or format context.
- Windows Media Player SDK — documentation for this HRESULT.
- Error handling in the WMP object model — normative or platform material relevant to this HRESULT.
Looking for a different code? Search another status or error code.
