MonikerCommonPrefixWith

HRESULT MonikerCommonPrefixWith(pmkThis, pmkOther, ppmkPrefix)

This function is intended solely for the use of moniker implementors; clients of monikers "need not apply;" clients should instead compute the common prefix between two monikers by using:


     pmkSrc->CommonPrefixWith(pmkOther, ppmkPrefix);

Implementations of IMoniker::CommonPrefixWith necessarily call MonikerCommonPrefixWith as part of their internal processing. Such a method should first check to see if the other moniker is a type that it recognizes and handles specially. If not, it should call MonikerCommonPrefixWith, passing itself as pmkSrc and the other moniker as pmkDest. MonikerCommonPrefixWith will handle the generic composite cases correctly.

Argument

Type

Description

pmkThis

IMoniker*

The starting moniker for the computation of the relative path.

pmkOther

IMoniker*

The moniker to which a relative path should be taken.

ppmkPrefix

IMoniker**

May not be NULL. The place at which the moniker of pmkDest relative to pmkSrc is to be returned.

return value

HRESULT

S_OK, MK_S_HIM, MK_S_ME, MK_S_US, MK_S_NOPREFIX