IDispatch::GetTypeInfo method (oaidl.h)

Retrieves the type information for an object, which can then be used to get the type information for an interface.

Syntax

HRESULT GetTypeInfo(
  [in]  UINT      iTInfo,
  [in]  LCID      lcid,
  [out] ITypeInfo **ppTInfo
);

Parameters

[in] iTInfo

The type information to return. Pass 0 to retrieve type information for the IDispatch implementation.

[in] lcid

The locale identifier for the type information. An object may be able to return different type information for different languages. This is important for classes that support localized member names. For classes that do not support localized member names, this parameter can be ignored.

[out] ppTInfo

The requested type information object.

Return value

This method can return one of these values.

Return code Description
S_OK
Success.
DISP_E_BADINDEX
The iTInfo parameter was not 0.

Requirements

Requirement Value
Target Platform Windows
Header oaidl.h

See also

IDispatch

IWebBrowser2