IShellUIHelper2::CustomizeSettings Method

Not supported. Saves the user settings from a "first run" page.

Syntax


HRESULT CustomizeSettings(
    VARIANT_BOOL fSQM,
    VARIANT_BOOL fPhishing,
    BSTR bstrLocale
);

Parameters

fSQM
[in] VARIANT_BOOL that specifies VARIANT_TRUE to enable Software Quality Monitoring (SQM), or VARIANT_FALSE to opt out.
fPhishing
[in] VARIANT_BOOL that specifies VARIANT_TRUE to turn on Microsoft Phishing Filter, or VARIANT_FALSE to turn it off.
bstrLocale
[in] BSTR that specifies the default region and language setting for the browser.

Return Value

Returns one of the following values:

S_OK Success.
E_ACCESSDENIED Method is not allowed in the current domain.

Remarks

IShellUIHelper2::CustomizeSettings was introduced in Windows Internet Explorer 7.

This method can only be called from a "first run" page in the correct domain.

Example

The following script disables both SQM and Phishing Filter, and sets the default language to US English.


window.external.CustomizeSettings(false,false,'en-US');

See Also

Community Additions

Show: