Home COM GDI+ WebBrowser Data Access

IGetRow Interface

 

IID_IGetRow

{0C733AAF-2A1C-11CE-ADE5-00AA0044773D}

 

 

Consumers use the IGetRow interface to get a row object or URL for a row in a rowset.

 

Documentation: IGetRow

 

 

Methods in VTable order

IUnknown Methods

Description

QueryInterface

Returns pointers to supported interfaces.

AddRef

Increments reference count.

Release

Decrements reference count.

IGetRow Methods

Description

GetRowFromHROW

Returns an interface pointer on a newly created row object associated with a row in a rowset.

GetURLFromHROW

Returns the URL for a row in a rowset.

 

QueryInterface

 

FUNCTION IGetRow_QueryInterface ( _

  BYVAL pthis AS DWORD PTR _

, BYREF riid AS GUID _

, BYREF ppvObj AS DWORD _

  ) AS LONG


  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[0] USING IGetRow_QueryInterface (pthis, riid, ppvObj) TO HRESULT
  FUNCTION = HRESULT
 

END FUNCTION

 

 

AddRef

 

FUNCTION IGetRow_AddRef ( _

  BYVAL pthis AS DWORD PTR _

  ) AS DWORD
 

  LOCAL DWRESULT AS LONG
  CALL DWORD @@pthis[1] USING IGetRow_AddRef (pthis) TO DWRESULT
  FUNCTION = DWRESULT
 

END FUNCTION

 

 

Release

 

FUNCTION IGetRow_Release ( _

  BYVAL pthis AS DWORD PTR _

  ) AS DWORD
 

  LOCAL DWRESULT AS DWORD
  CALL DWORD @@pthis[2] USING IGetRow_Release (pthis) TO DWRESULT
  FUNCTION = DWRESULT
 

END FUNCTION

 

 

GetRowFromHROW

 

FUNCTION IGetRow_GetRowFromHROW ( _
  BYVAL pthis AS DWORD PTR _

, BYVAL pUnkOuter AS DWORD _

, BYVAL hRow AS DWORD _

, BYREF riid AS GUID _

, BYREF ppUnk AS DWORD _

  ) AS LONG


  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[3] USING IGetRow_GetRowFromHROW (pthis, pUnkOuter, hRow, riid, ppUnk) TO HRESULT
  FUNCTION = HRESULT

END FUNCTION

 

 

GetURLFromHROW

 

DECLARE FUNCTION Proto_IGetRow_GetURLFromHROW ( _
  BYVAL pthis AS DWORD PTR _

, BYVAL hRow AS DWORD _

, BYREF ppwszURL AS DWORD _

  ) AS LONG

 

FUNCTION IGetRow_GetURLFromHROW ( _
  BYVAL pthis AS DWORD PTR _

, BYVAL hRow AS DWORD _

, BYREF strURL AS DWORD _

  ) AS LONG


  strURL = ""
  LOCAL HRESULT AS LONG
  LOCAL bstrlen AS LONG
  LOCAL ppwszURL AS DWORD
  CALL DWORD @@pthis[4] USING Proto_IGetRow_GetURLFromHROW (pthis, hRow, ppwszURL) TO HRESULT
  IF ISTRUE ppwszURL THEN
     bstrlen = lstrlenW(BYVAL ppwszURL)
     IF ISTRUE bstrlen THEN
        strURL = PEEK$(ppwszURL, bstrlen * 2)
        strURL = ACODE$(strURL)
     END IF
     CoTaskMemFree ppwszURL
  END IF
  FUNCTION = HRESULT

END FUNCTION

 

 

Page last updated on Wednesday, 15 February 2006 23:31:41 +0100