Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IShellUIHelper4::msIsSiteModeFirstRun Method

New for Windows Internet Explorer 9

Determines whether a pinned site was launched for the first time.

Syntax


HRESULT msIsSiteModeFirstRun(
    VARIANT_BOOL fPreserveState,
    VARIANT *puiFirstRun
);

Parameters

fPreserveState
[in]  One of the following required values:
VARIANT_FALSE
Read and clear the first-run state.
VARIANT_TRUE
Only read the state, do not clear it.
puiFirstRun
[out, retval] Returns one of the following values:
SITEMODE_NOTFIRSTRUN
The pinned site is not in a first-run state.
SITEMODE_DRAGDROP
First run from a drag and drop operation.
SITEMODE_ADDTOSTARTMENU
First run from a shortcut added to the Start menu. See msAddSiteMode.

Return Value

Returns one of the following values.

S_OK The operation completed successfully.
E_NOTIMPL This method is not supported on Windows CE.

Remarks

The msIsSiteModeFirstRun method detects whether the current pinned site window is in a first-run state, right after installation. This method returns SITEMODE_NOTFIRSTRUN for any page that is not in the same domain as the start URL, or if the current pinned site window is not the one that appeared immediately after installation.

If fPreserveState is VARIANT_TRUE, the msIsSiteModeFirstRun method does not reset the first-run state, and instead returns the same value for any page visited (even those shown in new tabs and new windows) during the first run, provided that the page is from the same domain as the start URL.

See Also

Community Additions

Show:
© 2014 Microsoft