Partager via


2.2.32.1 Reserved DISPIDs

The following DISPIDs are defined by the OLE Automation Protocol, as specified in [MS-OAUT]. These DISPIDs are reserved and are meant to provide common, well-known DISPIDs associated with methods that have similar semantics across all automation server implementations. When an automation server needs to provide access to methods or properties that have specific semantics that map to one from the set below, they SHOULD use the DISPIDs specified in the following table.

Constant/value

Description

DISPID_VALUE

0

This MUST designate the default member for the object. The default member is the member that best represents the automation server.

DISPID_UNKNOWN

-1

The value MUST be returned by GetIDsOfNames (see section 3.1.4.3) to indicate that a member or parameter name was not found.

DISPID_PROPERTYPUT

-3

This MUST designate the parameter that receives the value of an assignment in a DISPATCH PROPERTYPUT or DISPATCH PROPERTYPUTREF invocation (see section 3.1.4.4).

DISPID_NEWENUM

-4

This MUST designate the DISPID associated with a _NewEnum method that MUST have the following signature.

 HRESULT   _NewEnum([out,retval] IEnumVARIANT** ppenum);
 OR:
 HRESULT   _NewEnum([out,retval] IUnknown** ppenum);
  

For more information about IEnumVARIANT, see section 3.3.