Поделиться через


IUrlHistoryStg::AddUrl method

Places the specified URL into the Windows Internet Explorer history.

Syntax

HRESULT AddUrl(
  [in] LPCOLESTR pocsUrl,
  [in] LPCOLESTR pocsTitle,
  [in] DWORD     dwFlags
);

Parameters

  • pocsUrl [in]
    The URL to place in the history.

  • pocsTitle [in]
    A pointer to the title associated with this URL. If NULL, no title is added.

  • dwFlags [in]
    Not implemented.

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

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.

Requirements

Minimum supported client

Windows XP, Windows 2000 Professional

Minimum supported server

Windows 2000 Server

Product

Internet Explorer 5.5

Header

Urlhist.h

IDL

Urlhist.idl

DLL

Shdocvw.dll

See also

IUrlHistoryStg