|
|
|
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
|
|
CUSTDATA Structure |
|
TYPE CUSTDATA
|
|
GetTypeKind |
|
FUNCTION ITypeInfo2_GetTypeKind ( _ BYVAL pthis AS DWORD PTR _ , BYREF pTypeKind AS LONG _
) AS
LONG
|
|
GetTypeFlags |
|
FUNCTION ITypeInfo2_GetTypeFlags ( _ BYVAL pthis AS DWORD PTR _ , BYREF pTypeFlags AS DWORD _
) AS
LONG
|
|
GetFuncIndexOfMemId |
|
FUNCTION ITypeInfo2_GetFuncIndexOfMemId ( _ BYVAL pthis AS DWORD PTR _ , BYVAL memid AS LONG _ , BYVAL invkind AS LONG _ , BYREF pFuncIndex AS DWORD _
) AS
LONG
|
|
GetVarIndexOfMemId |
|
FUNCTION ITypeInfo2_GetVarIndexOfMemId ( _ BYVAL pthis AS DWORD PTR _ , BYVAL memid AS LONG _ , BYREF pVarIndex AS DWORD _
) AS
LONG
|
|
GetCustData |
|
FUNCTION ITypeInfo2_GetCustData ( _ BYVAL pthis AS DWORD PTR _ , BYREF iid AS GUID _ , BYREF pVarVal AS VARIANT _
) AS
LONG
|
|
GetFuncCustData |
|
FUNCTION ITypeInfo2_GetFuncCustData ( _ BYVAL pthis AS DWORD PTR _ , BYVAL index AS DWORD _ , BYREF riid AS GUID _ , BYREF pVarVal AS VARIANT _
) AS
LONG
|
|
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
|
|
GetVarCustData |
|
FUNCTION ITypeInfo2_GetVarCustData ( _ BYVAL pthis AS DWORD PTR _ , BYVAL index AS DWORD _ , BYREF riid AS GUID _ , BYREF pVarVal AS VARIANT _
) AS
LONG
|
|
GetImplTypeCustData |
|
FUNCTION ITypeInfo2_GetImplTypeCustData ( _ BYVAL pthis AS DWORD PTR _ , BYVAL index AS DWORD _ , BYREF riid AS GUID _ , BYREF pVarVal AS VARIANT _
) AS
LONG
|
|
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 strHelpString = ACODE$(strHelpString)
strHelpStringDll = ACODE$(strHelpStringDll)
|
|
GetAllCustData |
|
FUNCTION ITypeInfo2_GetAllCustData ( _ BYVAL pthis AS DWORD PTR _ , BYREF pCustData AS CUSTDATA _
) AS
LONG
|
|
GetAllFuncCustData |
|
FUNCTION ITypeInfo2_GetAllFuncCustData ( _ BYVAL pthis AS DWORD PTR _ , BYVAL index AS DWORD _ , BYREF pCustData AS CUSTDATA _
) AS
LONG
|
|
GetAllParamCustData |
|
FUNCTION ITypeInfo2_GetAllParamCustData ( _ BYVAL pthis AS DWORD PTR _ , BYVAL indexFunc AS DWORD _ , BYVAL indexParam AS DWORD _ , BYREF pCustData AS CUSTDATA _
)
AS LONG
|
|
GetAllVarCustData |
|
FUNCTION ITypeInfo2_GetAllVarCustData ( _ BYVAL pthis AS DWORD PTR _ , BYVAL index AS DWORD _ , BYREF pCustData AS CUSTDATA _
) AS
LONG
|
|
GetAllImplTypeCustData |
|
FUNCTION ITypeInfo2_GetAllImplTypeCustData ( _ BYVAL pthis AS DWORD PTR _ , BYVAL index AS DWORD _ , BYREF pCustData AS CUSTDATA _
) AS
LONG
|
Page last updated on Monday, 27 March 2006 12:55:32 +0100