Microsoft DirectX 9.0

CBaseDispatch::GetTypeInfo

The GetTypeInfo method retrieves the type information for the object, which can then be used to get the type information for an interface.

Syntax

HRESULT GetTypeInfo(
    REFIID riid,
    UINT itinfo,
    LCID lcid,
    ITypeInfo **pptinfo
);

Parameters

riid

Reference to an interface identifier (IID) that specifies the interface.

itinfo

Type information to return. Must be zero.

lcid

Locale identifier.

pptinfo

Address of a variable that receives an ITypeInfo pointer.

Return Value

Returns an HRESULT value. Possible values include the following.

Value Description
S_OK Success.
E_POINTER Null pointer argument.
TYPE_E_ELEMENTNOTFOUND The itinfo parameter is not zero.

Remarks

This method behaves like the IDispatch::GetTypeInfo method. However, it includes an additional parameter, riid, which specifies the interface for which to retrieve type information.

See Also