IProvideMultipleClassInfo::GetInfoOfIndex method (ocidl.h)
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
[in] iti
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.
[in] dwFlags
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.
[out] pptiCoClass
The coclass type information for the requested contributor. See ITypeInfo.
[out] pdwTIFlags
The bitfield flag.
[out] pcdispidReserved
The number 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.
[out] piidPrimary
The IID of the primary interface for the requested contributor.
[out] piidSource
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
Requirement | Value |
---|---|
Minimum supported client | Windows 2000 Professional [desktop apps only] |
Minimum supported server | Windows 2000 Server [desktop apps only] |
Target Platform | Windows |
Header | ocidl.h |