#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2004
    Posts
    10
    Rep Power
    0

    Resetting (Internet Explorer) Internet Options but....


    Hi,

    I need to create a stand-alone application that will do the following
    for Windows 98 / Me / 2000 / XP:

    Internet Explorer:
    History (clear)
    Temporary Internet Files (clear)
    Security (default level)
    Privacy (default level)
    Advanced options (default level)

    It will therefore act as a substitute to going into Tools ->
    Internet Options and manually clicking buttons.

    I need the app to be "invisible" (the user need not see
    what is happening), and it will be invoked from another front-end
    application (when the user clicks a button it will do all of the
    above in the background for them).

    Any help / pushes in the right direction would be appreciated.

    Thanks for your time,

    G.
  2. #2
  3. Banned ;)
    Devshed Supreme Being (6500+ posts)

    Join Date
    Nov 2001
    Location
    Woodland Hills, Los Angeles County, California, USA
    Posts
    9,595
    Rep Power
    4207
    Why does it have to be a separate app? Why can't you do it in the front end app where you click the button?
    Up the Irons
    What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home.
    "Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest
    Down with Sharon Osbourne

    "I wouldn't hire a butcher to fix my car. I also wouldn't hire a marketing firm to build my website." - Nilpo
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2004
    Posts
    10
    Rep Power
    0
    Hi Scorpions4ever,

    Much of a muchness really, I'd still need to develop the code when the button is clicked.

    In any case, my front end application is developed in Flash MX / Actionscript. IMO it lacks the low level functionality that I believe is necessary for this task....

    I may be wrong, but I think this is more likely going to involve quite complex API calls which Flash MX cannot invoke. Not sure what the calls would be though....

    However, I hope I am wrong, because if it was just a matter of manipulating various registry settings I could do it already (assuming I could find what the actual settings are)....

    Any help would be great.

    G.
  6. #4
  7. Banned ;)
    Devshed Supreme Being (6500+ posts)

    Join Date
    Nov 2001
    Location
    Woodland Hills, Los Angeles County, California, USA
    Posts
    9,595
    Rep Power
    4207
    >> History (clear):
    See FindFirstUrlCacheEntry(), FindNextUrlCacheEntry(), FindCloseUrlCache() and DeleteUrlCacheEntry()
    http://msdn.microsoft.com/library/de...cacheentry.asp
    Pass visited:*.* as the first param for FindFirstUrlCacheEntry()

    >> Temporary Internet Files (clear)
    Use GetTempPath() get the path to the temporary files folder. Then use FindFirstFile(), FindNextFile() and FindClose() to iterate through the list of files in the temporary files folder and use DeleteFile() to delete them.
    http://msdn.microsoft.com/library/de...ettemppath.asp
    http://msdn.microsoft.com/library/de...dfirstfile.asp
    http://msdn.microsoft.com/library/de...deletefile.asp


    Security:
    See the regkey at HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Security

    As for the others, I believe it's possible to access the menu system via the IE object. I've done something like this a while ago, but I don't recall the exact code. Maybe I'll find the code later on.
    Up the Irons
    What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home.
    "Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest
    Down with Sharon Osbourne

    "I wouldn't hire a butcher to fix my car. I also wouldn't hire a marketing firm to build my website." - Nilpo
  8. #5
  9. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2004
    Posts
    10
    Rep Power
    0

    Thumbs up


    Awesome mate, thanks so much for that it will help a lot. Especially the API stuff.

    Although, I'd already looked at that registry entry, it does not seem to be affected if you change any security levels (e.g. go from low, to high, then back to default....). To set IE Security levels back to default may well be a registry alteration, but quite possibly elsewhere. Will look into it.

    As for the other tabs in the Tools -> Internet Options menu, any other clues that you can think of would be very welcome.

    Cheers,

    G.

IMN logo majestic logo threadwatch logo seochat tools logo