3.15.4.1.3 _NewEnum (Opnum 9)

The _NewEnum method is received by the server in an RPC_REQUEST packet. In response, the server MUST return a pointer to an IUnknown interface pointer that represents an enumerator instance for this collection. _NewEnum implements the IEnumVARIANT server functionality, as described in [MS-OAUT] section 3.3.

 [restricted] HRESULT _NewEnum(
   [out, retval] IUnknown** ppunk
 );

ppunk: The ppunk output parameter MUST be set to an IUnknown pointer to a standard OLE automation enumerator that can be used to enumerate the VariantCollection instance variable elements.

Return Values: The method MUST return S_OK (0x00000000) on success or an implementation-specific error HRESULT on failure.

When processing this call, the server MUST follow these guidelines:

  • The ppunk output parameter MUST be set to an IUnknown pointer to a standard OLE automation enumerator that can be used to enumerate the VariantCollection instance variable elements.