This method of the IMoniker interface combines the current moniker with another moniker, creating a new composite moniker.
public IMoniker ComposeWith(IMoniker pmkRight, boolean fOnlyIfNotGeneric);
The method supports the standard return values E_OUTOFMEMORY and E_UNEXPECTED, as well as the following:
S_OK -- The monikers were successfully combined.
MK_E_NEEDGENERIC -- Indicates that fOnlyIfNotGeneric was TRUE, but the monikers could not be composed together without creating a generic composite moniker.
[in] pmkRight | Pointer to the IMoniker interface on the moniker to compose onto the end of this moniker. |
[in] fOnlyIfNotGeneric | If TRUE, the caller requires a non-generic composition, so the operation should proceed only if pmkRight is a moniker class that this moniker can compose with in some way other than forming a generic composite. If FALSE, the method can create a generic composite if necessary. |