Clearing Pocket IE Windows Cache

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
 
P

Paul G. Tobey [eMVP]

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.
 
S

stealthrabbi

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
 
P

Paul G. Tobey [eMVP]

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top