|
|
|
IEnumMoniker Interface |
|
IID_IEnumMoniker |
{00000102-0000-0000-C000-000000000046} |
|
The IEnumMoniker interface is used to enumerate the components of a moniker or to enumerate the monikers in a table of monikers.
Call the methods of the IEnumMoniker interface if you need to enumerate the components of a composite moniker, or to enumerate the monikers in a table.
OLE defines two interfaces that supply an IEnumMoniker interface pointer:
|
|
Methods in VTable order |
|
|
IUnknown Methods |
Description |
|
QueryInterface |
Returns pointers to supported interfaces. |
|
AddRef |
Increments reference count. |
|
Release |
Decrements reference count. |
|
IEnumMoniker Methods |
Description |
|
Next |
Gets the next items in the enumeration sequence. |
|
Skip |
Attempts to skip over the next celt elements in the enumeration sequence. |
|
Reset |
Resets the enumeration sequence to the beginning. |
|
Clone |
Creates a copy of the current state of enumeration. |
|
Next |
|
FUNCTION IEnumMoniker_Next ( _ BYVAL pthis AS DWORD PTR _ , BYVAL celt AS DWORD _ , BYVAL rgelt AS DWORD _ , BYREF pceltFetched AS DWORD _
) AS
LONG
LOCAL HRESULT AS LONG END FUNCTION
|
|
Skip |
|
FUNCTION IEnumMoniker_Skip ( _ BYVAL pthis AS DWORD PTR _ , BYVAL celt AS DWORD _
) AS LONG
LOCAL HRESULT AS LONG END FUNCTION
|
|
Reset |
|
FUNCTION IEnumMoniker_Reset ( _ BYVAL pthis AS DWORD PTR _
) AS LONG
LOCAL HRESULT
AS LONG END FUNCTION
|
|
Clone |
|
FUNCTION IEnumMoniker_Clone ( _ BYVAL pthis AS DWORD PTR _ , BYVAL ppenum AS DWORD _
) AS LONG
LOCAL HRESULT
AS LONG END FUNCTION
|
|
Example |
|
The following example shows the display names of all the objects currently registered in the Running Object Table (ROT)
#COMPILE EXE
FUNCTION PBMAIN
' Get a pointer to the moniker enumerator
|
Page last updated on Friday, 17 March 2006 17:21:58 +0100