IShellUIHelper2::RunOnceHasShown Method

Not supported. Determines whether the "first run" page has been shown.

Syntax

HRESULT RunOnceHasShown(
    VARIANT_BOOL *pfShown
);

Parameters

  • pfShown
    [out, retval] Returns one of the following values:
    • VARIANT_TRUE
      The "first run" page has been shown at least once.
    • VARIANT_FALSE
      The "first run" page has not been shown.

Return Value

Returns one of the following values:

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

Remarks

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

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

This method sets the following DWORD registry value to 0 or 1.

HKEY_CURRENT_USER
     Software
          Microsoft
               Internet Explorer
                    Main
                         RunOnceHasShown

See Also

IShellUIHelper2::RunOnceShown, IShellUIHelper2::RunOnceRequiredSettingsComplete