Site icon EfmSoft

What does HRESULT 0x0026231E (ERROR_GRAPHICS_NO_PREFERRED_MODE) mean?

 
Previous Next
ERROR_GRAPHICS_MODE_NOT_PINNED ERROR_GRAPHICS_DATASET_IS_EMPTY

ERROR_GRAPHICS_NO_PREFERRED_MODE

VidPN mode set has no preferred mode

ERROR_GRAPHICS_NO_PREFERRED_MODE is HRESULT 2499358 (0x0026231E) from winerror.h. AllStat describes it as “Specified mode set does not specify preference for one of its modes.” In the Windows display topology or Desktop Window Manager operation, the value reports a nonfailure state that must not be collapsed into plain S_OK.

Accepting this result requires proving the documented state rather than checking only SUCCEEDED(hr).

Where the status is encountered

Keep it attached to the operation that returned it. Interpreting it outside that API contract can turn a normal continuation or partial result into an incorrect retry or false completion.

What must be true before accepting it

Verify that the absence of preference is allowed and another deterministic selection rule is available. Validation of it keeps a success-severity result from becoming a broader promise than the API made.

Also confirm that returned outputs belong to the current operation generation and were not inherited from an earlier attempt.

Difference from nearby results

MODE_NOT_PINNED concerns the active pin; NO_PREFERRED_MODE concerns preference metadata within a mode set.

Using one generic success branch for it and its neighbor can lose output, repeat work, or misreport completion.

Correct handling and recovery

Enumerate all valid modes and choose using policy, current mode, or user selection. Do not assume the first enumerated mode is stable across drivers.

Retry after it only when a recorded input, capability, resource, policy, or state has changed.

Practical scenario

A monitor descriptor exposes several valid modes but no preferred flag. The display service chooses the current native-sized mode by policy.

References


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

Exit mobile version