Returns a moniker based on the common prefix that the two monikers share. This
function is intended for use only in IMoniker::CommonPrefixWith
| LPMONIKER pmkThis,
||//First moniker being compared
| LPMONIKER pmkOther,
||//Second moniker being compared
| LPMONIKER FAR *ppmkCommon
||//Receives common prefix
Points to one of the monikers to compare.
Points to the other moniker to compare.
Receives a pointer to a moniker based on the common prefix of pmkThis
. The returned pointer is NULL if an error occurs; if non-NULL, the function
has called IUnknown::AddRef
on the parameter and the caller is responsible for calling IUnknown::Release
Indicates a common prefix exists that is neither pmkThis
Indicates the entire pmkOther
moniker is a prefix of the pmkThis
Indicates the entire pmkThis
moniker is a prefix of the pmkOther
Indicates the pmkThis
monikers are equal.
Indicates the monikers have no common prefix.
Indicates this function was called on a relative moniker. It is not meaningful
to take the common prefix of relative monikers.
Indicates an unexpected error occurred.
Indicates insufficient memory.
only if you are writing your own moniker class (implementing the IMoniker
interface). Call this function from your implementation of the IMoniker::CommonPrefixWith
Your implementation of IMoniker::CommonPrefixWith
should first check whether the other moniker is of a type you recognize and
handle in a special way. If not, you should call MonikerCommonPrefixWith
, passing itself as pmkThis
and the other moniker as pmkOther
correctly handles the cases where either moniker is a generic composite.
You should call this function only if pmkSrc
are both absolute monikers (where an absolute moniker is either a file
moniker or a generic composite whose left-most component is a file moniker, and where
the file moniker represents an absolute path). Do not call this function on
- Software for developers
Software for Android Developers
- More information resources
Unix Manual Pages