DoPrivacyDlg function

Displays a dialog box showing the privacy status for URLs associated with a webpage.

Syntax

HRESULT DoPrivacyDlg(
  _In_ HWND                hwndParent,
  _In_ LPCWSTR             pszUrl,
  _In_ IEnumPrivacyRecords *pPrivacyEnum,
  _In_ BOOL                fReportAllSites
);

Parameters

hwndParent [in]

An HWND that specifies a handle to the parent of the dialog box. This parameter can be set to NULL.

pszUrl [in]

A LPCWSTR that specifies the URL of interest.

pPrivacyEnum [in]

A pointer to the IEnumPrivacyRecords interface that contains the privacy information for pszUrl and all affected dependent URLs.

fReportAllSites [in]

A BOOL value that specifies whether to show privacy information for all sites or just sites with privacy violations.

(TRUE)

Show privacy information for all sites.

(FALSE)

Show privacy information only for sites with privacy violations.

Return value

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

Remarks

Use the IServiceProvider::QueryService method to query for the IEnumPrivacyRecords interface and to pass in IID_IEnumPrivacyRecords for the guidService parameter and the riid parameter.

Requirements

Minimum supported client

Windows XP

Minimum supported server

Windows 2000 Server

Product

Internet Explorer 6

Header

Shlobj.h

Library

Shdocvw.lib

DLL

Shdocvw.dll