3.3.4 Message Processing and Sequencing Rules

This is an overview of the four methods that are used by the IEnumVARIANT interface. The names and opnums of each method are given as follows, as well as a simple description of the method.

The IEnumVARIANT derives from the IUnknown interface. IEnumVARIANT servers MUST implement the methods defined in IUnknown in the order and with the opnums with which they are specified in [MS-DCOM] Appendix A.

Methods in RPC Opnum Order

Method

Description

Next

The IEnumVARIANT::Next method returns the requested items that are next in the enumeration sequence.

Opnum: 3

Skip

The IEnumVARIANT::Skip method skips over the requested number of elements in the enumeration sequence.

Opnum: 4

Reset

The IEnumVARIANT::Reset method resets the enumeration sequence to the beginning.

Opnum: 5

Clone

The IEnumVARIANT::Clone method creates a copy of the current state of the enumeration.

Opnum: 6

All methods MUST NOT throw exceptions. All return values use the NTSTATUS numbering space; in particular, a value of 0x00000000 indicates success, and any other return value indicates an error. All error values are specified in [MS-ERREF] and MUST be treated the same unless specified otherwise.