CreateItemMoniker

HRESULT CreateItemMoniker(lpszDelim, lpszItem, ppmk)

Allocate and return a new Item Moniker. It is intended that the resulting moniker be then composed onto the end of a second moniker which binds to something that supports IOleItemContainer interface. The resulting composite moniker when bound will extract the object of the indicated name from within this container.

lpszItem is the item name which will be later passed to IOleItemContainer::GetObject. lpszDelim is simply another string that will prefix lpszItem in the display name of the Item Moniker.

See also IOleItemContainer::IsRunning.

Argument

Type

Description

lpszDelim

LPSTR

A string that will prefix lpszItem in the display name of this moniker. Often an exclamation mark (!). See also the discussion of syntax in MkParseDisplayName.

lpszItem

LPSTR

The item name to pass to IOleItemContainer::GetObject.

ppmk

IMoniker**

The place to put the new Item Moniker.

return code

HRESULT

S_OK, E_OUTOFMEMORY