Home COM GDI+ WebBrowser Data Access

ITypeInfo2 Interface

 

IID_ITypeInfo2

{00020412-0000-0000-C000-000000000046

 

 

An ITypeInfo2 can be cast to an ITypeInfo instead of using the calls QueryInterface() and Release() to allow quick opens and allocs. This only works for in-process cases.

 

 

Methods in VTable order

IUnknown Methods

Description

QueryInterface

Returns pointers to supported interfaces.

AddRef

Increments reference count.

Release

Decrements reference count.

ITypeInfo Methods

Description

GetTypeAttr

Retrieves a TYPEATTR structure that contains the attributes of the type description.

GetTypeComp

Retrieves the ITypeComp interface for the type description, which enables a client compiler to bind to the type description's members.

GetFuncDesc

Retrieves the FUNCDESC structure that contains information about a specified function.

GetVarDesc

Retrieves a VARDESC structure that describes the specified variable.

GetNames

Retrieves the variable with the specified member ID (or the name of the property or method and its parameters) that correspond to the specified function ID.

GetRefTypeOfImplType

If a type description describes a COM class, it retrieves the type description of the implemented interface types. For an interface, GetRefTypeOfImplType returns the type information for inherited interfaces, if any exist.

GetImplTypeFlags

Retrieves the IMPLTYPEFLAGS enumeration for one implemented interface or base interface in a type description.

GetIDsOfNames

Maps between member names and member IDs, and parameter names and parameter IDs.

Invoke

Invokes a method, or accesses a property of an object, that implements the interface described by the type description.

GetDocumentation

Retrieves the documentation string, the complete Help file name and path, and the context ID for the Help topic for a specified type description.

GetDllEntry

Retrieves a description or specification of an entry point for a function in a DLL.

GetRefTypeInfo

If a type description references other type descriptions, it retrieves the referenced type descriptions.

AddressOfMember

Retrieves the addresses of static functions or variables, such as those defined in a DLL.

CreateInstance

Creates a new instance of a type that describes a component object class (coclass).

GetMops

Retrieves marshaling information.

GetContainingTypeLib

Retrieves the containing type library and the index of the type description within that type library.

ReleaseTypeAttr

Releases a TYPEATTR previously returned by GetTypeAttr.

ReleaseFuncDesc

Releases a FUNCDESC previously returned by GetFuncDesc.

ReleaseVarDesc

Releases a VARDESC previously returned by GetVarDesc.

ITypeInfo2 Methods

Description

GetTypeKind

Returns the TYPEKIND enumeration quickly, without doing any allocations.

GetTypeFlags

Returns the type flags without any allocations. This returns a DWORD type flag, which expands the type flags without growing the TYPEATTR (type attribute).

GetFuncIndexOfMemId

Binds to a specific member based on a known DISPID, where the member name is not known (for example, when binding to a default member).

GetVarIndexOfMemId

Binds to a specific member based on a known DISPID, where the member name is not known (for example, when binding to a default member).

GetCustData

Gets the custom data.

GetFuncCustData

Gets the custom data from the specified function.

GetParamCustData

Gets the specified custom data parameter.

GetVarCustData

Gets the variable for the custom data.

GetImplTypeCustData

Gets the implementation type of the custom data.

GetDocumentation2

Retrieves the documentation string, the complete Help file name and path, the localization context to use, and the context ID for the library Help topic in the Help file.

GetAllCustData

Gets all custom data items for the library.

GetAllFuncCustData

Gets all custom data from the specified function.

GetAllParamCustData

Gets all of the custom data for the specified function parameter.

GetAllVarCustData

Gets the variable for the custom data.

GetAllImplTypeCustData

Gets all custom data for the specified implementation type.

 

CUSTDATAITEM Structure

 

TYPE CUSTDATAITEM
   rguid AS GUID
   varValue AS VARIANTAPI
END TYPE

 

 

CUSTDATA Structure

 

TYPE CUSTDATA
   cCustData AS DWORD
   prgCustData AS CUSTDATAITEM PTR
END TYPE

 

 

GetTypeKind

 

FUNCTION ITypeInfo2_GetTypeKind ( _

  BYVAL pthis AS DWORD PTR _

, BYREF pTypeKind AS LONG _

  ) AS LONG

  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[22] USING ITypeInfo2_GetTypeKind (pthis, pTypeKind) TO HRESULT
  FUNCTION = HRESULT

END FUNCTION

 

 

GetTypeFlags

 

FUNCTION ITypeInfo2_GetTypeFlags ( _

  BYVAL pthis AS DWORD PTR _

, BYREF pTypeFlags AS DWORD _

  ) AS LONG

  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[23] USING ITypeInfo2_GetTypeFlags (pthis, pTypeFlags) TO HRESULT
  FUNCTION = HRESULT

END FUNCTION

 

 

GetFuncIndexOfMemId

 

FUNCTION ITypeInfo2_GetFuncIndexOfMemId ( _

  BYVAL pthis AS DWORD PTR _

, BYVAL memid AS LONG _

, BYVAL invkind AS LONG _

, BYREF pFuncIndex AS DWORD _

  ) AS LONG

  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[24] USING ITypeInfo2_GetFuncIndexOfMemId (pthis, memid, invkind, pFuncIndex) TO HRESULT
  FUNCTION = HRESULT

END FUNCTION

 

 

GetVarIndexOfMemId

 

FUNCTION ITypeInfo2_GetVarIndexOfMemId ( _

  BYVAL pthis AS DWORD PTR _

, BYVAL memid AS LONG _

, BYREF pVarIndex AS DWORD _

  ) AS LONG

  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[25] USING ITypeInfo2_GetVarIndexOfMemId (pthis, memid, pVarIndex) TO HRESULT
  FUNCTION = HRESULT

END FUNCTION

 

 

GetCustData

 

FUNCTION ITypeInfo2_GetCustData ( _

  BYVAL pthis AS DWORD PTR _

, BYREF iid AS GUID _

, BYREF pVarVal AS VARIANT _

  ) AS LONG

  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[26] USING ITypeInfo2_GetCustData (pthis, iid, pVarVal) TO HRESULT
  FUNCTION = HRESULT

END FUNCTION

 

 

GetFuncCustData

 

FUNCTION ITypeInfo2_GetFuncCustData ( _

  BYVAL pthis AS DWORD PTR _

, BYVAL index AS DWORD _

, BYREF riid AS GUID _

, BYREF pVarVal AS VARIANT _

  ) AS LONG

  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[27] USING ITypeInfo2_GetFuncCustData (pthis, index, riid, pVarVal) TO HRESULT
  FUNCTION = HRESULT

END FUNCTION

 

 

GetParamCustData

 

FUNCTION ITypeInfo2_GetParamCustData ( _

  BYVAL pthis AS DWORD PTR _

, BYVAL indexFunc AS DWORD _

, BYVAL indexParam AS DWORD _

, BYREF riid AS GUID _

, BYREF pVarVal AS VARIANT _

  ) AS LONG

  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[28] USING ITypeInfo2_GetParamCustData (pthis, indexFunc, indexParam, riid, pVarVal) TO HRESULT
  FUNCTION = HRESULT

END FUNCTION

 

 

GetVarCustData

 

FUNCTION ITypeInfo2_GetVarCustData ( _

  BYVAL pthis AS DWORD PTR _

, BYVAL index AS DWORD _

, BYREF riid AS GUID _

, BYREF pVarVal AS VARIANT _

  ) AS LONG

  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[29] USING ITypeInfo2_GetVarCustData (pthis, index, riid, pVarVal) TO HRESULT
  FUNCTION = HRESULT

END FUNCTION

 

 

GetImplTypeCustData

 

FUNCTION ITypeInfo2_GetImplTypeCustData ( _

  BYVAL pthis AS DWORD PTR _

, BYVAL index AS DWORD _

, BYREF riid AS GUID _

, BYREF pVarVal AS VARIANT _

  ) AS LONG

  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[30] USING ITypeInfo2_GetImplTypeCustData (pthis, index, riid, pVarVal) TO HRESULT
  FUNCTION = HRESULT

END FUNCTION

 

 

GetDocumentation2

 

FUNCTION ITypeInfo2_GetDocumentation2 ( _

  BYVAL pthis AS DWORD PTR _

, BYVAL memid AS LONG _

, BYVAL lcid AS LONG _

, BYREF strHelpString AS STRING _

, BYREF pdwHelpStringContext AS DWORD _

, BYREF strHelpStringDll AS STRING _

  ) AS LONG

  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[31] USING ITypeInfo2_GetDocumentation2 (pthis, memid, lcid, strHelpString, pdwHelpStringContext, strHelpStringDll) TO HRESULT

  strHelpString = ACODE$(strHelpString)

  strHelpStringDll = ACODE$(strHelpStringDll)
  FUNCTION = HRESULT

END FUNCTION

 

 

GetAllCustData

 

FUNCTION ITypeInfo2_GetAllCustData ( _

  BYVAL pthis AS DWORD PTR _

, BYREF pCustData AS CUSTDATA _

  ) AS LONG

  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[32] USING ITypeInfo2_GetAllCustData (pthis, pCustData) TO HRESULT
  FUNCTION = HRESULT

END FUNCTION

 

 

GetAllFuncCustData

 

FUNCTION ITypeInfo2_GetAllFuncCustData ( _

  BYVAL pthis AS DWORD PTR _

, BYVAL index AS DWORD _

, BYREF pCustData AS CUSTDATA _

  ) AS LONG

  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[33] USING ITypeInfo2_GetAllFuncCustData (pthis, index, pCustData) TO HRESULT
  FUNCTION = HRESULT

END FUNCTION

 

 

GetAllParamCustData

 

FUNCTION ITypeInfo2_GetAllParamCustData ( _

  BYVAL pthis AS DWORD PTR _

, BYVAL indexFunc AS DWORD _

, BYVAL indexParam AS DWORD _

, BYREF pCustData AS CUSTDATA _

  ) AS LONG

  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[34] USING ITypeInfo2_GetAllParamCustData (pthis, indexFunc, indexParam, pCustData) TO HRESULT
  FUNCTION = HRESULT

END FUNCTION

 

 

GetAllVarCustData

 

FUNCTION ITypeInfo2_GetAllVarCustData ( _

  BYVAL pthis AS DWORD PTR _

, BYVAL index AS DWORD _

, BYREF pCustData AS CUSTDATA _

  ) AS LONG

  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[35] USING ITypeInfo2_GetAllVarCustData (pthis, index, pCustData) TO HRESULT
  FUNCTION = HRESULT

END FUNCTION

 

 

GetAllImplTypeCustData

 

FUNCTION ITypeInfo2_GetAllImplTypeCustData ( _

  BYVAL pthis AS DWORD PTR _

, BYVAL index AS DWORD _

, BYREF pCustData AS CUSTDATA _

  ) AS LONG

  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[36] USING ITypeInfo2_GetAllImplTypeCustData (pthis, index, pCustData) TO HRESULT
  FUNCTION = HRESULT

END FUNCTION

 

 

Page last updated on Monday, 27 March 2006 12:55:32 +0100