IDispatch::GetTypeInfo method

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

Syntax

HRESULT GetTypeInfo(
  UINT      iTInfo,
  LCID      lcid,
  ITypeInfo **ppTInfo
);

Parameters

iTInfo

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

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.

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

   
Target Platform Windows
Header oaidl.h

See Also

IDispatch

IWebBrowser2