Re: Internet Explorer Security Settings Refresh

From: Randy Birch (rgb_removethis_at_mvps.org)
Date: 11/19/04


Date: Thu, 18 Nov 2004 22:41:15 -0500

You can try to broadcast that the registry was changed -- perhaps that will
cause IE to refresh itself.

Call PostMessage(HWND_BROADCAST, WM_SETTINGCHANGE, 0&, ByVal "Registry")

... or ...

Call SendMessageTimeout(HWND_BROADCAST, _
                                       WM_SETTINGCHANGE, _
                                       ByVal "Registry", _
                                       0&, SMTO_ABORTIFHUNG, _
                                       1000&, success)

Private Declare Function PostMessage Lib "user32" _
   Alias "PostMessageA" _
  (ByVal hwnd As Long, _
   ByVal wMsg As Long, _
   ByVal wParam As Long, _
   lParam As Any) As Long

Private Declare Function SendMessageTimeout Lib "user32" _
   Alias "SendMessageTimeoutA" _
  (ByVal hwnd As Long, ByVal msg As Long, _
   ByVal wParam As Long, lParam As Any, _
   ByVal fuFlags As Long, ByVal uTimeout As Long, _
   lpdwResult As Long) As Long

Private Const HWND_BROADCAST As Long = &HFFFF&
Private Const WM_SETTINGCHANGE As Long = &H1A
Private Const SMTO_ABORTIFHUNG As Long = &H2

-- 
Randy Birch
MS MVP Visual Basic
http://vbnet.mvps.org/
"Tyler Allen" <noemail@blah.com> wrote in message
news:ecFQXUdzEHA.576@TK2MSFTNGP14.phx.gbl...
: I am adding sites to security zones in Internet Explorer through the
: registry. I would like a way to force Internet Explorer to "refresh" the
: browser with the new settings. The functionality can be re-created by
going
: into security and adding a site to a zone. Once you click "OK", your new
: site will instantly show in that zone. Any and all help is appreciated.
:
:


Relevant Pages

  • Re: Remove GPO setting Help!!
    ... the offending setting in Group Policy otherwise it could eventually refresh ... VPN ... I was then able to load the users registry and delete the offending ... I can have the user login as another acount and VPN in to our network ...
    (microsoft.public.windowsxp.security_admin)
  • Re: blank system event logs
    ... RECORDS, and refresh, but it is still blank. ... >In microsoft.public.win2000.registry shirley wrote: ... the system event viewer are ... >> the registry to make it not show up there. ...
    (microsoft.public.win2000.registry)
  • Re: Configure ftp base dir doesnt work...
    ... Or you tried rebooting and it works fine after reboot, ... can't get refresh to work? ... But i wonder why this all works without refreshing the ftp service. ... IOCTL_SERVICE_REFRESH to tell the server to reread the registry. ...
    (microsoft.public.windowsce.app.development)
  • Re: Remove GPO setting Help!!
    ... Where was the policy applied - locally or domain/OU level?? ... refresh over the VPN at the next GP refresh interval which may be up to a ... You might also be able to remotely delete that registry key ...
    (microsoft.public.windowsxp.security_admin)