Export (0) Print
Expand All

IShellUIHelper4::msIsSiteMode Method

New for Windows Internet Explorer 9

Determines whether the current page was launched as a pinned site.

Syntax


HRESULT msIsSiteMode(
    VARIANT_BOOL *pfSiteMode
);

Parameters

pfSiteMode
[out, retval] A VARIANT_BOOL value that receives VARIANT_TRUE if the current page was launched as a pinned site; VARIANT_FALSE otherwise.

Return Value

Returns S_OK if successful, or an error value otherwise.

Remarks

You can use this method to configure your webpages differently if they are running as a pinned site versus the normal browser mode.

Only pages within the same domain as the pinned site start URL are considered to be part of the pinned site. If a page from a different domain is opened inside the pinned site window, then IShellUIHelper4::msIsSiteMode returns VARIANT_FALSE.

To pin a site, Internet Explorer requires Windows 7 or later.

See Also

IShellUIHelper4::msAddSiteMode

Community Additions

ADD
Show:
© 2014 Microsoft