Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

IShellUIHelper4::msIsSiteMode Method

New for Windows Internet Explorer 9

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


HRESULT msIsSiteMode(
    VARIANT_BOOL *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.


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

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2014 Microsoft. All rights reserved.