|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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
|
||||
|
||||
|
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 Puzzle of the Month solved by sizeablegrin, etienne141 and L7Sqr, superior C/C++ programmers of the month |
|
#3
|
|||
|
|||
|
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. |
|
#4
|
||||
|
||||
|
>> History (clear):
See FindFirstUrlCacheEntry(), FindNextUrlCacheEntry(), FindCloseUrlCache() and DeleteUrlCacheEntry() http://msdn.microsoft.com/library/d...lcacheentry.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/d...gettemppath.asp http://msdn.microsoft.com/library/d...ndfirstfile.asp http://msdn.microsoft.com/library/d.../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. |
|
#5
|
|||
|
|||
|
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. |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > Delphi Programming > Resetting (Internet Explorer) Internet Options but.... |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|