Click to Rate and Give Feedback
MSDN
MSDN Library
Web Development
Protected Mode
Reference
Functions
 IERefreshElevationPolicy Function
IERefreshElevationPolicy Function

Tells Windows Windows Internet Explorer processes to refresh elevation policies from the registry.

Syntax

HRESULT IERefreshElevationPolicy(VOID);

Return Value

Returns S_OK if successful, or an error value otherwise.

Remarks

Typically, elevation policies are loaded when the first Internet Explorer process loads. As a result, changes to elevation policies do not take effect until all current processes have ended and Internet Explorer is restarted. If you modify elevation policies and wish your updates to be effective more quickly, call IERefreshElevationPolicy after modifying elevation policies. When you do so, Internet Explorer reloads elevation policies when they're next used.

Function Information

Stock Implementationieframe.dll
Custom ImplementationNo
Headeriepmapi.h
Import libraryiepmapi.lib
Minimum availabilityInternet Explorer 7
Minimum operating systems Windows Vista
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Please mention this API call in other docs.      joey_l   |   Edit   |   Show History

Other articles which talk about where in the registry to set ElevationPolicy entries during installation of an ActiveX control should also make mention of this new api function. For example, the first hit in Google for "elevationpolicy":

"Understanding and Working in Protected Mode Internet Explorer"
http://msdn.microsoft.com/en-us/library/bb544929.aspx

Tags What's this?: Add a tag
Flag as ContentBug
IERefreshElevationPolicy doesn't solve the problem      aidtopia   |   Edit   |   Show History
This doesn't say in what context to call IERefreshElevationPolicy. The blog post announcing this API suggests calling it in your extension installer after adding the new elevation policy. But the installer is typically running as the Administrator (often a different user) or as a service (automatic updates). Unfortunately, IERefreshElevationPolicy doesn't seem to signal all instances of IEUSER to reload the elevation policies, just the one for the current user. So this is still a Catch-22. How can the installer trigger other a policy cache refresh for other users?
Tags What's this?: Add a tag
Flag as ContentBug
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement | Site Feedback
Page view tracker