Home COM GDI+ WebBrowser Data Access

ICreateTypeLib2 Interface

 

IID_ICreateTypeLib2

{0002040F-0000-0000-C000-000000000046

 

 

ICreateTypeLib2 inherits from ICreateTypeLib, and has four member functions. The ICreateTypeInfo instance returned from ICreateTypeLib can be accessed through a QueryInterface() call to ICreateTypeInfo2.

 

 

Methods in VTable order

IUnknown Methods

Description

QueryInterface

Returns pointers to supported interfaces.

AddRef

Increments reference count.

Release

Decrements reference count.

ICreateTypeLib Methods

Description

CreateTypeInfo

Creates a new type description instance within the type library.

SetName

Sets the name of the type library.

SetVersion

Sets major and minor version numbers for the type library.

SetGuid

Sets the GUID for the type library.

SetDocString

Sets the documentation string for the type library.

SetHelpFileName

Sets the Help file name.

SetHelpContext

Sets the Help context ID for general information about the type library in the Help file.

SetLcid

Sets the locale identifier (LCID) code indicating the national language associated with the library.

SetLibFlags

Sets library flags, such as LIBFLAG_FRESTRICTED.

SaveAllChanges

Saves the ICreateTypeLib instance.

ICreateTypeLib2 Methods

Description

DeleteTypeInfo

Deletes a specified type information from the type library.

SetCustData

Sets a value to custom data.

SetHelpStringContext

Sets the Help string context number.

SetHelpStringDll

Sets the DLL name to be used for Help string lookup.

 

DeleteTypeInfo

 

FUNCTION ICreateTypeLib2_DeleteTypeInfo ( _

  BYVAL pthis AS DWORD PTR _

, BYVAL strName AS STRING _

  ) AS LONG

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

END FUNCTION

 

 

SetCustData

 

FUNCTION ICreateTypeLib2_SetCustData ( _

  BYVAL pthis AS DWORD PTR _

, BYREF rguid AS GUID _

, BYVAL pVarVal AS VARIANT _

  ) AS LONG
 

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

END FUNCTION

 

 

SetHelpStringContext

 

FUNCTION ICreateTypeLib2_SetHelpStringContext ( _

  BYVAL pthis AS DWORD PTR _

, BYVAL dwHelpStringContext AS DWORD _

  ) AS LONG

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

END FUNCTION

 

 

SetHelpStringDll

 

FUNCTION ICreateTypeLib2_SetHelpStringDll ( _

  BYVAL pthis AS DWORD PTR _

, BYVAL strFileName AS STRING _

  ) AS LONG

  LOCAL HRESULT AS LONG
  strFileName = UCODE$(strFileName & $NUL)
  CALL DWORD @@pthis[16] USING ICreateTypeLib2_SetHelpStringDll (pthis, strFileName) TO HRESULT
  FUNCTION = HRESULT

END FUNCTION

 

 

Page last updated on Friday, 08 September 2006 22:36:35 +0200