Home COM GDI+ WebBrowser Data Access

IUrlHistoryStg  Interface

 

IID_IUrlHistoryStg

{3C374A41-BAE4-11CF-BF7D-00AA006946EE}

 

 

This interface manages Microsoft Internet Explorer history for the current user.

 

 

Methods in VTable order

IUnknown Methods

Description

QueryInterface

Returns pointers to supported interfaces.

AddRef

Increments reference count.

Release

Decrements reference count.

IUrlHistoryStg Methods

Description

AddUrl

Places the specified URL into the history. If the URL does not exist in the history, an entry is created in the history. If the URL does exist in the history, it is overwritten.

DeleteUrl

Deletes all instances of the specified URL from the history.

QueryUrl

Queries the history and reports whether the URL passed as the pocsUrl parameter has been visited by the current user.

BindToObject

Not currently implemented.

EnumUrls

Returns an interface to an enumerator of the history's visited links.

 

AddUrl

 

FUNCTION IUrlHistoryStg_AddUrl ( _
  BYVAL pthis AS DWORD PTR _
, BYVAL strUrl AS STRING _
, BYVAL strTitle AS STRING _
, BYVAL dwFlags AS DWORD _
  ) AS LONG

  LOCAL HRESULT AS LONG

  strUrl = UCODE$(strUrl) & $NUL
  strTitle = UCODE$(strTitle) & $NUL
  CALL DWORD @@pthis[3] USING IUrlHistoryStg_AddUrl (pthis, strUrl, strTitle, dwFlags) TO HRESULT
  FUNCTION = HRESULT

END FUNCTION

 

 

DeleteUrl

 

FUNCTION IUrlHistoryStg_DeleteUrl ( _
  BYVAL pthis AS DWORD PTR _
, BYVAL strUrl AS STRING _
, BYVAL dwFlags AS DWORD _
  ) AS LONG

  LOCAL HRESULT AS LONG

  strUrl = UCODE$(strUrl) & $NUL
  CALL DWORD @@pthis[4] USING IUrlHistoryStg_DeleteUrl (pthis, strUrl, dwFlags) TO HRESULT
  FUNCTION = HRESULT

END FUNCTION

 

 

QueryUrl

 

FUNCTION IUrlHistoryStg_QueryUrl ( _
  BYVAL pthis AS DWORD PTR _
, BYVAL strUrl AS STRING _
, BYVAL dwFlags AS DWORD _
, BYREF lpSTATURL AS STATURL _
  ) AS LONG

  LOCAL HRESULT AS LONG

  strUrl = UCODE$(strUrl) & $NUL
  CALL DWORD @@pthis[5] USING IUrlHistoryStg_QueryUrl (pthis, strUrl, dwFlags, lpSTATURL) TO HRESULT
  FUNCTION = HRESULT

END FUNCTION

 

 

BindToObject

 

FUNCTION IUrlHistoryStg_BindToObject ( _
  BYVAL pthis AS DWORD PTR _
, BYVAL strUrl AS STRING _
, BYREF riid AS GUID _
, BYREF ppvOut AS DWORD _
  ) AS LONG

  LOCAL HRESULT AS LONG

  strUrl = UCODE$(strUrl) & $NUL
  CALL DWORD @@pthis[6] USING IUrlHistoryStg_BindToObject (pthis, strUrl, riid, ppvOut) TO HRESULT
  FUNCTION = HRESULT

END FUNCTION

 

 

EnumUrls

 

FUNCTION IUrlHistoryStg_EnumUrls ( _
  BYVAL pthis AS DWORD PTR _
, BYREF ppEnum AS DWORD _
  ) AS LONG

  LOCAL HRESULT AS LONG

  CALL DWORD @@pthis[7] USING IUrlHistoryStg_EnumUrls (pthis, ppEnum) TO HRESULT
  FUNCTION = HRESULT

END FUNCTION

 

 

Page last updated on Monday, 03 April 2006 20:06:09 +0200