Supplies a pointer to an enumerator that can enumerate the components of a composite moniker.
HRESULT Enum(
BOOL fForward, //Specifies direction of enumeration
IEnumMoniker **ppenumMoniker
//Address of output variable that receives the
//IEnumMoniker interface pointer
);
The method supports the standard return values E_OUTOFMEMORY and E_UNEXPECTED, as well as the following:
IMoniker::Enum must supply an IEnumMoniker pointer to an enumerator that can enumerate the components of a moniker. For example, the implementation of the IMoniker::Enum method for a generic composite moniker creates an enumerator that can determine the individual monikers that make up the composite, while the IMoniker::Enum method for a file moniker creates an enumerator that returns monikers representing each of the components in the path.
Call this method to examine the components that make up a composite moniker.
If the new moniker class has no discernible internal structure, your implementation of this method can simply return S_OK and set ppenumMoniker to NULL.
Windows NT: Use version 3.1 or later.
Windows: Use Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in objidl.h.