This topic has not yet been rated - Rate this topic

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 [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Product

Internet Explorer 6

Header

Shlobj.h

Library

Shdocvw.lib

DLL

Shdocvw.dll

 

 

Build date: 11/27/2012

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.