Comments

Solution to Delete Temporary Internet Files in IE 6

Posted by divesh4u
on 06/09/2006 07:25am

You can do this by following steps:
You can type simpely in header
#pragma comment(lib, "wininet.lib")
--------OR---------
In the your Project in VC++ 6.0
Go to Project -> Settings -> Links
In the Object/Library Modules type: Wininet.lib
It will definately work.
Divesh K. Jain

how to delete cookie and temporary internet files using java

How to recognise the file extension of cached items in the Internet Temporary Files folder ?

Posted by Legacy
on 01/15/2004 12:00am

Originally posted by:
Brent

HI, there

I am making a programme that is expected to be able to fetch the pictures files in the Internet Temporary Files folder, such as .jpg and .gif etc. My thoughts is to use winInet API to recognise each cacheEntry's extension, if it is .jpg or .gif then do the further manipulation.

In a loop, when each item is fetched by FindNextUrlCacheEntry , and then I wish to use lpCacheEntry -> lpszFileExtension to find out the extension of the cached entry. The problem is lpCacheEntry -> lpszFileExtension seems cannot contain some extention like "jpg" or "gif", (but I found no prolem with "htm" or "css" etc.)so I cannot use something like:
if (lpCacheEntry -> lpszFileExtension is "jpg") then do....

How do you do this in C#

This is exactly what I need to do. But I need to do it as part of a larger C# app. I've been trying to set up the DLLImport stuff to call the wininet dll from C#. Works for some of the simplier calls in winint - like InternetGetConnectedState.

Where I'm stumped is how to declare the functions and structures for calls to FindFirstUrlCacheEntry and such. The memory allocation and such makes this not nearly as straight forward.

Has anyone done this for C#?

Ray

How do u do this in C#

Posted by saravanan_article
on 01/30/2006 11:22pm

this is exactly what i need to do but these things need to be do in C#. Please post the code.