CreateGenericComposite

HRESULT CreateGenericComposite(pmkFirst, pmkRest, ppmkComposite)

Allocate and return a new composite moniker. pmkFirst and pmkRest are its first and trailing elements respectively. Either of pmkFirst and pmkRest may be a generic composite, or another kind of moniker. Generic composites get flattened into their component pieces before being put into the new composite. This function will be called by implementations of IMoniker::ComposeWith when they wish to carry out a generic compose operation.

Argument

Type

Description

pmkFirst

IMoniker*

The first element(s) in the new composite. May not be NULL.

pmkRest

IMoniker*

The trailing element(s) in the new composite. May not be NULL.

ppmkComposite

IMoniker*

Through here is returned the new composite.

return value

HRESULT

S_OK, E_OUTOFMEMORY