Home COM GDI+ WebBrowser Data Access

IErrorInfo Interface

 

IID_IErrorInfo

{1CF2B120-547D-101B-8E65-08002B2BD119}

 

 

The IErrorInfo interface provides detailed contextual error information.

 

 

Methods in VTable order

IUnknown Methods

Description

QueryInterface

Returns pointers to supported interfaces.

AddRef

Increments reference count.

Release

Decrements reference count.

IErrorInfo Methods

Description

GetGUID

Returns the globally unique identifier (GUID) for the interface that defined the error.

GetSource

Returns the programmatic identifier (ProgID) for the class or application that returned the error.

GetDescription

Returns a textual description of the error.

GetHelpFile

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

GetHelpContext

Returns the Help context identifier (ID) for the error.

 

GetGUID

 

FUNCTION IErrorInfo_GetGUID ( _

  BYVAL pthis AS DWORD PTR _

, BYREF pguid AS GUID _

  ) AS LONG

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

END FUNCTION

 

 

GetSource

 

FUNCTION IErrorInfo_GetSource ( _

  BYVAL pthis AS DWORD PTR _

, BYREF strSource AS STRING _

  ) AS LONG

  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[4] USING IErrorInfo_GetSource (pthis, strSource) TO HRESULT

  strSource = ACODE$(strSource)
  FUNCTION = HRESULT

END FUNCTION

 

 

GetDescription

 

FUNCTION IErrorInfo_GetDescription ( _

  BYVAL pthis AS DWORD PTR _

, BYREF strDescription AS STRING _

  ) AS LONG

  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[5] USING IErrorInfo_GetDescription (pthis, strDescription) TO HRESULT

  strDescription = ACODE$(strDescription)
  FUNCTION = HRESULT

END FUNCTION

 

 

GetHelpFile

 

FUNCTION IErrorInfo_GetHelpFile ( _

  BYVAL pthis AS DWORD PTR _

, BYREF strHelpFile AS STRING _

  ) AS LONG

  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[6] USING IErrorInfo_GetHelpFile (pthis, strHelpFile) TO HRESULT

  strHelpFile = ACODE$(strHelpFile)
  FUNCTION = HRESULT

END FUNCTION

 

 

GetHelpContext

 

FUNCTION IErrorInfo_GetHelpContext ( _

  BYVAL pthis AS DWORD PTR _

, BYREF pdwHelpContext AS DWORD _

  ) AS LONG

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

END FUNCTION

 

 

Page last updated on Monday, 27 March 2006 12:48:20 +0100