Share via


ImportPrivacySettings function

Processes and imports an XML file that contains customized privacy preferences.

Syntax

BOOL ImportPrivacySettings(
  _In_    LPCWSTR szFilename,
  _Inout_ BOOL    *pfParsePrivacyPreferences,
  _Inout_ BOOL    *pfParsePerSiteRules
);

Parameters

  • szFilename [in]
    A value of type LPCWSTR that specifies the name of the XML file containing the privacy preferences.

  • pfParsePrivacyPreferences [in, out]
    A pointer to a BOOL that, on function call, specifies whether to parse and set the privacy preferences in szFilename; and on function return, specifies whether the new preferences were parsed and set.

  • pfParsePerSiteRules [in, out]
    A pointer to a BOOL that, on function call, specifies whether to parse and set the per-site privacy preferences in szFilename; and on function return, specifies whether these preferences were parsed and set.

Return value

Returns TRUE if the privacy preferences specified in szFilename are set successfully; and returns FALSE if the parsing or setting was unsuccessful, leaving the privacy preferences unchanged.

Remarks

See XML Elements for Custom Privacy Import Files for a description of the XML that works with this function.

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