Clearing Pocket IE Windows Cache

  • Thread starter Thread starter stealthrabbi
  • Start date Start date
S

stealthrabbi

Using VS 2005, .NET CF 2.0 SP1, on Windows CE 4.2

Is there a way to clear the internet explorer cache programatically
other than deleting the Temp Internet Files directory? It seems
there'd be an API call to execute the functionality of the "Clear
Cache" button on the "Internet Options" window from the Control Panel.

\Windows\Profiles\xyz\Temporary Internet Files
 
stealthrabbi said:
Using VS 2005, .NET CF 2.0 SP1, on Windows CE 4.2

Is there a way to clear the internet explorer cache programatically
other than deleting the Temp Internet Files directory? It seems
there'd be an API call to execute the functionality of the "Clear
Cache" button on the "Internet Options" window from the Control Panel.

I couldn't believe it when I checked, but there is an API in wininet.dll.
The declaration can be found in winineti.h in your native code SDK:
FreeUrlCacheSpaceW. Of course, you'll have to P/Invoke it.

Paul T.
 
I couldn't believe it when I checked, but there is an API in wininet.dll.
The declaration can be found in winineti.h in your native code SDK:
FreeUrlCacheSpaceW. Of course, you'll have to P/Invoke it.

Paul T.


Where is this documentation for FreeUrlCacheSpaceW? I understand that
i will need to do a DllImport on the .dll, but i can't find much
refernece for the prototype of that function. The only other source i
can find is : http://support.microsoft.com/kb/326201

Thanks,
~mark
 
There is no documentation. Microsoft clearly was not intending for anyone
other than the browser and its minions to clear the cache. The Internet
Options control panel applet calls it with NULL, 100, 0 as the parameters.

Paul T.
 
Back
Top