Home COM GDI+ WebBrowser Data Access

IProvideClassInfo2 Interface

 

IID_IProvideClassInfo2

{B196B283-BAB4-101A-B69C-00AA00341D07}

 

 

The IProvideClassInfo2 interface is a simple extension to IProvideClassInfo for the purpose of making it quick and easy to retrieve an object's outgoing interface IID for its default event set. The mechanism, the added GetGUID method, is extensible for other types of GUIDs as well.

 

Call the method in this interface to obtain type information on an object's outgoing interfaces.

 

 

Methods in VTable order

IUnknown Methods

Description

QueryInterface

Returns pointers to supported interfaces.

AddRef

Increments reference count.

Release

Decrements reference count.

IProvideClassInfo Methods

Description

GetClassInfo

Returns a pointer to the ITypeInfo interface for the object's type information. The type information for an object corresponds to the object's coclass entry in a type library.

IProvideClassInfo2 Methods

Description

GetGUID

Returns the GUID for the object's outgoing IID for its default event set.

 

GetGUID

 

FUNCTION IProvideClassInfo2_GetGUID ( _

  BYVAL pthis AS DWORD PTR _

, BYVAL dwGuidKind AS DWORD _

, BYREF pGUID AS GUID _

  ) AS LONG

  LOCAL HRESULT AS DWORD
  CALL DWORD @@pthis[4] USING IProvideClassInfo2_GetGUID (pthis, dwGuidKind, pGUID) TO HRESULT
  FUNCTION = HRESULT

END FUNCTION

 

 

 

FUNCTION IProvideClassInfo2_GetGUID ( _

  BYVAL pthis AS DWORD PTR _

, BYVAL dwGuidKind AS DWORD _

, BYREF pGUID AS GUID _

  ) AS LONG

  ! mov  eax, pGUID

  ! push eax

  ! push dwGuidKind
  ! mov  eax, pthis
  ! push eax
  ! mov  eax, dword ptr[eax]
  ! call dword ptr[eax+12]
  ! mov  FUNCTION, eax


END FUNCTION

 

 

Page last updated on Monday, 03 April 2006 20:21:52 +0200