id(num)

Description

Identifies the DISPID of the member.

Allowed on

Method or property in an interface or dispinterface.

Comments

The num is a 32-bit integral value in the following format:

Bits Value
0 – 15 Offset. Any value is permissible.
16 – 21 The nesting level of this type information in the inheritance hierarchy. For example:
interface mydisp : IDispatch

The nesting level of IUnknown is 0, IDispatch is 1, and MyDisp is 2.

22 – 25 Reserved. Must be zero.
26 – 28 Dispatch identifier (DISPID) value.
29 True if this is the member identifier for a FuncDesc; otherwise False.
30–31 Must be 01.

Negative identifiers are reserved for use by Automation.