Home COM GDI+ WebBrowser Data Access

ICreateErrorInfo Interface

 

IID_ICreateErrorInfo

{22F03340-547D-101B-8E65-08002B2BD119}

 

 

The ICreateErrorInfo interface returns error information.

 

 

Methods in VTable order

IUnknown Methods

Description

QueryInterface

Returns pointers to supported interfaces.

AddRef

Increments reference count.

Release

Decrements reference count.

ICreateErrorInfo Methods

Description

SetGUID

Sets the GUID for the interface that defined the error.

SetSource

Sets the ProgID for the class or application that returned the error.

SetDescription

Sets a textual description of the error.

SetHelpFile

Sets the path of the Help file that describes the error.

SetHelpContext

Sets the Help context ID for the error.

 

SetGUID

 

FUNCTION ICreateErrorInfo_SetGUID ( _

  BYVAL pthis AS DWORD PTR _

, BYREF rguid AS GUID _

  ) AS LONG

  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[3] USING ICreateErrorInfo_SetGUID (pthis, rguid) TO HRESULT
  FUNCTION = HRESULT

END FUNCTION

 

 

SetSource

 

FUNCTION ICreateErrorInfo_SetSource ( _

  BYVAL pthis AS DWORD PTR _

, BYVAL szSource AS STRING _

  ) AS LONG

  LOCAL HRESULT AS LONG
  szSource = UCODE$(szSource & $NUL)
  CALL DWORD @@pthis[4] USING ICreateErrorInfo_SetSource (pthis, szSource) TO HRESULT
  FUNCTION = HRESULT

END FUNCTION

 

 

SetDescription

 

FUNCTION ICreateErrorInfo_SetDescription ( _

  BYVAL pthis AS DWORD PTR _

, BYVAL szDescription AS STRING _

  ) AS LONG

  LOCAL HRESULT AS LONG
  szDescription = UCODE$(szDescription & $NUL)
  CALL DWORD @@pthis[5] USING ICreateErrorInfo_SetDescription (pthis, szDescription) TO HRESULT
  FUNCTION = HRESULT

END FUNCTION

 

 

SetHelpFile

 

FUNCTION ICreateErrorInfo_SetHelpFile ( _

  BYVAL pthis AS DWORD PTR _

, BYVAL szHelpFile AS STRING _

  ) AS LONG

  LOCAL HRESULT AS LONG
  szHelpFile = UCODE$(szHelpFile & $NUL)
  CALL DWORD @@pthis[6] USING ICreateErrorInfo_SetHelpFile (pthis, szHelpFile) TO HRESULT
  FUNCTION = HRESULT

END FUNCTION

 

 

SetHelpContext

 

FUNCTION ICreateErrorInfo_SetHelpContext ( _

  BYVAL pthis AS DWORD PTR _

, BYVAL dwHelpContext AS DWORD _

  ) AS LONG

  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[7] USING ICreateErrorInfo_SetHelpContext (pthis, dwHelpContext) TO HRESULT
  FUNCTION = HRESULT

END FUNCTION

 

 

Page last updated on Friday, 08 September 2006 20:47:24 +0200