Home COM GDI+ WebBrowser Data Access

ICreateTypeInfo2 Interface

 

IID_ICreateTypeInfo2

{0002040E-0000-0000-C000-000000000046}

 

 

The ICreateTypeInfo2 interface derives from ICreateTypeInfo, and adds methods for deleting items that have been added through ICreateTypeInfo.

 

The ICreateTypeInfo::LayOut method provides a way for the creator of the type information to check for any errors. A call to QueryInterface() can be made to the ICreateTypeInfo instance at any time for its ITypeInfo interface. Calling any of the methods in the ITypeInfo interface that require layout information lays out the type information automatically.

 

 

Methods in VTable order

IUnknown Methods

Description

QueryInterface

Returns pointers to supported interfaces.

AddRef

Increments reference count.

Release

Decrements reference count.

ICreateTypeInfo Methods

Description

SetGuid

Sets the globally unique identifier (GUID) for the type library.

SetTypeFlags

Sets type flags of the type description that is being created.

SetDocString

Sets the documentation string displayed by type browsers.

SetHelpContext

Sets the Help context ID of the type description.

SetVersion

Sets version numbers for the type description.

AddRefTypeInfo

Adds a type description to those referenced by the type description being created.

AddFuncDesc

Adds a function description as a type description.

AddImplType

Specifies an inherited interface.

SetImplTypeFlags

Sets the attributes for an implemented or inherited interface of a type.

SetAlignment

Specifies data alignment for types of TKIND_RECORD.

SetSchema

Undocumented.

AddVarDesv

Adds a data member description as a type description.

SetFuncAndParamNames

Sets the function name and names of its parameters.

SetVarName

Sets the name of a variable.

SetTypeDescAlias

Sets the type description for which this type description is an alias, if TYPEKIND=TKIND_ALIAS.

DefineFuncAsDllEntry

Associates a dynamic link library (DLL) entry point with a function that has a specified index.

SetFuncDocString

Sets the documentation string for a function.

SetVarDocString

Sets the documentation string for a variable.

SetFuncHelpContext

Sets the Help context identifier (ID) for a function.

SetVarHelpContext

Sets the Help context ID for a variable.

SetMops

Sets the opcode string for a type description.

SetTypeIdldesc

Undocumented.

LayOut

Assigns virtual function table (VTBL) offsets for virtual functions and instance offsets for per-instance data members.

ICreateTypeInfo2 Methods

Description

DeleteFuncDesc

Deletes a function description specified by the index number.

DeleteFuncDescByMemId

Deletes the function description specified by memid.

DeleteVarDesc

Deletes the specified VARDESC structure.

DeleteVarDescByMemId

Deletes the specified VARDESC structure.

DeleteImplType

Deletes the IMPLTYPE flags for the indexed interface.

SetCustData

Sets a value for custom data for the type information.

SetFuncCustData

Sets a value for custom data for a function.

SetParamCustData

Sets custom data for a parameter.

SetVarCustData

Sets custom data for a variable.

SetImplTypeCustData

Sets custom data for an implementation type.

SetHelpStringContext

Sets the context number for the specified Help string.

SetFuncHelpStringContext

Sets a Help context value for a specified function.

SetVarHelpStringContext

Sets a Help context value for a variable.

Invalidate

Undocumented.

SetName

Sets the name of the typeinfo.

 

DeleteFuncDesc

 

FUNCTION ICreateTypeInfo2_DeleteFuncDesc ( _

  BYVAL pthis AS DWORD PTR _

, BYVAL index AS DWORD _

  ) AS LONG

  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[26] USING ICreateTypeInfo2_DeleteFuncDesc (pthis, index) TO HRESULT
  FUNCTION = HRESULT


END FUNCTION

 

 

DeleteFuncDescByMemId

 

FUNCTION ICreateTypeInfo2_DeleteFuncDescByMemId ( _

  BYVAL pthis AS DWORD PTR _

, BYVAL memid AS LONG _

, BYVAL invkind AS DWORD _

  ) AS LONG

  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[27] USING ICreateTypeInfo2_DeleteFuncDescByMemId (pthis, memid, invkind) TO HRESULT
  FUNCTION = HRESULT


END FUNCTION

 

 

DeleteVarDesc

 

FUNCTION ICreateTypeInfo2_DeleteVarDesc ( _

  BYVAL pthis AS DWORD PTR _

, BYVAL index AS DWORD _

  ) AS LONG

  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[28] USING ICreateTypeInfo2_DeleteVarDesc (pthis, index) TO HRESULT
  FUNCTION = HRESULT


END FUNCTION

 

 

DeleteVarDescByMemId

 

FUNCTION ICreateTypeInfo2_DeleteVarDescByMemId ( _

  BYVAL pthis AS DWORD PTR _

, BYVAL memid AS LONG _

  ) AS LONG

  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[29] USING ICreateTypeInfo2_DeleteVarDescByMemId (pthis, memid) TO HRESULT
  FUNCTION = HRESULT

END FUNCTION

 

 

DeleteImplType

 

FUNCTION ICreateTypeInfo2_DeleteImplType ( _

  BYVAL pthis AS DWORD PTR _

, BYVAL index AS DWORD _

  ) AS LONG

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


END FUNCTION

 

 

SetCustData

 

FUNCTION ICreateTypeInfo2_SetCustData ( _

  BYVAL pthis AS DWORD PTR _

, BYREF rguid AS GUID _

, BYVAL pVarVal AS VARIANT _

  ) AS LONG

  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[31] USING ICreateTypeInfo2_SetCustData (pthis, rguid, pVarVal) TO HRESULT
  FUNCTION = HRESULT


END FUNCTION

 

 

SetFuncCustData

 

FUNCTION ICreateTypeInfo2_SetFuncCustData ( _

  BYVAL pthis AS DWORD PTR _

, BYVAL index AS DWORD _

, BYREF rguid AS GUID _

, BYVAL pVarVal AS VARIANT _

  ) AS LONG

  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[32] USING ICreateTypeInfo2_SetFuncCustData (pthis, index, rguid, pVarVal) TO HRESULT
  FUNCTION = HRESULT


END FUNCTION

 

 

SetParamCustData

 

FUNCTION ICreateTypeInfo2_SetParamCustData ( _

  BYVAL pthis AS DWORD PTR _

, BYVAL indexFunc AS DWORD _

, BYVAL indexParam AS DWORD _

, BYREF rguid AS GUID _

, BYVAL pVarVal AS VARIANT _

  ) AS LONG

  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[33] USING ICreateTypeInfo2_SetParamCustData (pthis, indexFunc, indexParam, rguid, pVarVal) TO HRESULT
  FUNCTION = HRESULT


END FUNCTION

 

 

SetVarCustData

 

FUNCTION ICreateTypeInfo2_SetVarCustData ( _

  BYVAL pthis AS DWORD PTR _

, BYVAL index AS DWORD _

, BYREF rguid AS GUID _

, BYVAL pVarVal AS VARIANT _

  ) AS LONG

  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[34] USING ICreateTypeInfo2_SetVarCustData (pthis, index, rguid, pVarVal) TO HRESULT
  FUNCTION = HRESULT


END FUNCTION

 

 

SetImplTypeCustData

 

FUNCTION ICreateTypeInfo2_SetImplTypeCustData ( _

  BYVAL pthis AS DWORD PTR _

, BYVAL index AS DWORD _

, BYREF rguid AS GUID _

, BYVAL pVarVal AS VARIANT _

  ) AS LONG

  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[35] USING ICreateTypeInfo2_SetImplTypeCustData (pthis, index, rguid, pVarVal) TO HRESULT
  FUNCTION = HRESULT


END FUNCTION

 

 

SetHelpStringContext

 

FUNCTION ICreateTypeInfo2_SetHelpStringContext ( _

  BYVAL pthis AS DWORD PTR _

, BYVAL dwHelpStringContext AS DWORD _

  ) AS LONG

  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[36] USING ICreateTypeInfo2_SetHelpStringContext (pthis, dwHelpStringContext) TO HRESULT
  FUNCTION = HRESULT


END FUNCTION

 

 

SetFuncHelpStringContext

 

FUNCTION ICreateTypeInfo2_SetFuncHelpStringContext ( _

  BYVAL pthis AS DWORD PTR _

, BYVAL index AS DWORD _

, BYVAL dwHelpStringContext AS DWORD _

) AS LONG

  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[37] USING ICreateTypeInfo2_SetFuncHelpStringContext (pthis, index, dwHelpStringContext) TO HRESULT
  FUNCTION = HRESULT


END FUNCTION

 

 

SetVarHelpStringContext

 

FUNCTION ICreateTypeInfo2_SetVarHelpStringContext ( _

  BYVAL pthis AS DWORD PTR _

, BYVAL index AS DWORD _

, BYVAL dwHelpStringContext AS DWORD _

  ) AS LONG

  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[38] USING ICreateTypeInfo2_SetVarHelpStringContext (pthis, index, dwHelpStringContext) TO HRESULT
  FUNCTION = HRESULT


END FUNCTION

 

 

Invalidate

 

FUNCTION ICreateTypeInfo2_Invalidate ( _

  BYVAL pthis AS DWORD PTR _

  ) AS LONG

  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[39] USING ICreateTypeInfo2_Invalidate (pthis) TO HRESULT
  FUNCTION = HRESULT


END FUNCTION

 

 

SetName

 

FUNCTION ICreateTypeInfo2_SetName ( _

  BYVAL pthis AS DWORD PTR _

, BYVAL strName AS STRING _

  ) AS LONG

  LOCAL HRESULT AS LONG
  strName = UCODE$(strName & $NUL)
  CALL DWORD @@pthis[40] USING ICreateTypeInfo2_SetName (pthis, strName) TO HRESULT
  FUNCTION = HRESULT


END FUNCTION

 

 

Page last updated on Friday, 08 September 2006 20:51:17 +0200