I'm trying to clear out the WinInet cache using Win32 API - by invalidating the cache entries, or deleting them (doesn't matter). I can't find any way to do this for the whole cache (other than iterating over each entry - example in C#, another in VB) - is this even possible?
Apparently, it is possible to (ab)use the Internet Options panel to clear the cache files by executing this:
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 8
Will try to call this as a DLL.
Source: http://www.vbforums.com/archive/index.php/t-440508.html , comment by technorobbo