| Previous | Next |
| NS_E_WMP_PNG_UNSUPPORTED_BAD_CRC | NS_E_WMP_BMP_TOPDOWN_DIB_UNSUPPORTED |
NS_E_WMP_BMP_INVALID_BITMASK
The exact condition behind the dialog
The symbolic result NS_E_WMP_BMP_INVALID_BITMASK narrows 0xC00D102E to the BMP invalid bit mask condition: the BMP channel masks are inconsistent with the declared bit depth or compression mode. Keep the BMP invalid bit mask boundary visible when a later dialog reduces it to a general media error.
An additional test is to record bit count, compression value and red/green/blue/alpha masks; that evidence is more useful than reinstalling the Player or changing several unrelated settings at once.
What succeeds before this failure
Representative case: A custom encoder writes overlapping color masks into a bitfields BMP.
State worth preserving
Capture state before Player cleanup:
- What to verify: record bit count, compression value and red/green/blue/alpha masks.
- Artifact: standalone decode result outside the skin package using the same bytes.
- State: archive member name, byte length, hash and file signature.
- Object identity: format header fields, dimensions, bit depth and color model.
- Underlying evidence: first invalid marker/chunk and its byte offset.
- Correlation: decoder-supported coding mode versus the file’s declared mode.
Reproduce without destroying evidence
- Find the first component that returned this result and label that event as the failure point.
- Freeze the input and object identity associated with the failing operation before WMP fallback or cleanup changes it.
- Reconstruct the immediately preceding successful state, then identify the call or event that crossed into failure.
- Perform the code-specific test: record bit count, compression value and red/green/blue/alpha masks.
- Make the targeted change—export a standard RGB/RGBA bitmap with valid nonoverlapping masks—and repeat the same producing operation.
Related HRESULTs with different meanings
| Result | Different condition |
|---|---|
NS_E_WMP_BMP_TOPDOWN_DIB_UNSUPPORTED | The BMP is a top-down DIB representation unsupported by this WMP path |
NS_E_WMP_PNG_UNSUPPORTED_BAD_CRC | A PNG chunk fails its integrity check in Windows Media Player |
NS_E_WMP_BMP_BITMAP_NOT_CREATED | The image parsed far enough to request a Windows bitmap but bitmap allocation or creation failed |
Recovery at the right layer
Resolve this result where the relevant state is produced: export a standard RGB/RGBA bitmap with valid nonoverlapping masks. After correction, reload or recreate the owning object so cached failure state is not mistaken for a successful repair.
- Avoid changing only the extension or MIME type while leaving the encoded bytes unchanged; it can destroy the artifact or state needed to explain this result.
- Avoid repeatedly recompressing the sole source image without retaining an original and a decoded pixel comparison; that can replace the original HRESULT with a secondary failure from another layer.
Technical references
- Skin files and image resources — normative or platform material relevant to this HRESULT.
- BITMAPINFOHEADER structure — API or format context.
- Windows Media Player skins — documentation for this HRESULT.
Looking for a different code? Search another status or error code.