What does HRESULT 0x000401E5 (MK_S_HIM) mean?

 
Previous Next
MK_S_ME MK_S_US

MK_S_HIM

Common moniker prefix is the input moniker

MK_S_HIM is HRESULT 262629 (0x000401E5) from winerror.h. The documented description is “Common prefix is input moniker.” The high-order severity bit is clear, so this is a success result, but it carries more information than plain S_OK.

The common-prefix operation succeeded and found that the supplied other moniker is the shared prefix of the current moniker relationship.

Where the result is encountered

  • This result can appear in IMoniker::CommonPrefixWith implementations; record the producing interface and method.
  • This result can appear in document-link hierarchy analysis; record the producing interface and method.
  • It can appear in conversion between absolute and relative composite monikers; record the producing interface and method.

State to verify

The central question is whether the input moniker is a prefix, not automatically the same complete object as the current moniker.

Diagnostic sequence

  • Capture the raw HRESULT 0x000401E5 immediately after the returning method and record whether the caller used SUCCEEDED, FAILED, equality testing, or exception translation.
  • Verify the method-specific state: the input moniker is a prefix, not automatically the same complete object as the current moniker.

Evidence to preserve

  • Preserve current and input display names.
  • Preserve component ordering.
  • Preserve moniker class identifiers.
  • Preserve returned common-prefix object.
  • Preserve relative moniker produced from the current object.

Correct handling, retry, and recovery

Use the input moniker as the prefix and derive the remainder from the current moniker. Avoid reversing source and target when constructing a relative link.

Difference from nearby HRESULT values

MK_S_ME selects the current moniker; it selects the argument; MK_S_US represents a common prefix equal to both complete monikers.

Practical validation scenario

A link manager compares an item moniker with its containing document passed as the argument. It confirms the argument is the prefix and the manager stores only the item remainder.

Developer and administrator guidance

References


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