IProvideMultipleClassInfo::GetInfoOfIndex method

Retrieves the type information from the specified index.

Syntax


HRESULT GetInfoOfIndex(
  [in]  ULONG     iti,
  [in]  DWORD     dwFlags,
  [out] ITypeInfo **pptiCoClass,
  [out] DWORD     *pdwTIFlags,
  [out] ULONG     *pcdispidReserved,
  [out] IID       *piidPrimary,
  [out] IID       *piidSource
);

Parameters

iti [in]

The index of the type information for which you want to obtain information. Index 0 is the default interface of the extender object; index *pcti-1 is the index of the base object.

dwFlags [in]

A bitfield indicating which out parameters are being requested. Indicating a particular flag results in the appropriate information being assigned to the associated out parameter. This parameter can be one of the following values.

ValueMeaning
MULTICLASSINFO_GETTYPEINFO
0x00000001

Indicates a request for pptiCoClass information.

MULTICLASSINFO_GETNUMRESERVEDDISPIDS
0x00000002

Indicates a request for pcdispidReserved and pdwTIFlags information.

MULTICLASSINFO_GETIIDPRIMARY
0x00000004

Indicates a request for piidPrimary information.

MULTICLASSINFO_GETIIDSOURCE
0x00000008

Indicates a request for piidSource information.

 

pptiCoClass [out]

The coclass type information for the requested contributor. See ITypeInfo.

pdwTIFlags [out]

The bitfield flag.

pcdispidReserved [out]

The mumber of DISPIDs the default interface of pptiCoClass reserves for its own use. This number can be used to calculate the amount to offset DISPIDs in the reserved range implemented by the object this class is extending.

piidPrimary [out]

The IID of the primary interface for the requested contributor.

piidSource [out]

The IID of the default source interface for the requested contributor.

Return value

This method can return the standard return values E_INVALIDARG, E_POINTER, E_FAIL, and S_OK.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

OCIdl.h

IDL

OCIdl.idl

IID

IID_IProvideMultipleClassInfo is defined as A7ABA9C1-8983-11cf-8F20-00805F2CD064

See also

IProvideMultipleClassInfo

 

 

Show: