Discussion:
Get internet handle witout open it
(too old to reply)
Miro Masnoglav
2004-04-01 08:57:43 UTC
Permalink
I have no experience with WinInet API, but I think answer to this question
is NO.
Is it possible to get and close HINTERNET handles of all internet
connections on a PC?
Example: I have Internet Explorer connected to some SSL secured WEB page. I
want to simulate "Clear SSL state" button in Win XP (ControlPanel\Internet
Options\Content). They told me (on another group) I should close all Wininet
handles in addition to call undocumented function SslClearCache from
schannel.dll..
My problem is: How to get this handles? How to get HINTERNET handle IE uses
it? Is it possible?

Thx for any help
Miro
Stephen Sulzer
2004-04-01 09:13:37 UTC
Permalink
Miro,

You cannot obtain the HINTERNET handles that another component or program is
using.

The "Clear SSL State" button does not need the HINTERNET handles that IE is
using. The code behind the "Clear SSL State" button uses an
undocumented/private WinInet API to unload WinInet's cached SSL client
certificates.

Stephen
Post by Miro Masnoglav
I have no experience with WinInet API, but I think answer to this question
is NO.
Is it possible to get and close HINTERNET handles of all internet
connections on a PC?
Example: I have Internet Explorer connected to some SSL secured WEB page. I
want to simulate "Clear SSL state" button in Win XP (ControlPanel\Internet
Options\Content). They told me (on another group) I should close all Wininet
handles in addition to call undocumented function SslClearCache from
schannel.dll..
My problem is: How to get this handles? How to get HINTERNET handle IE uses
it? Is it possible?
Thx for any help
Miro
Miro Masnoglav
2004-04-01 09:44:39 UTC
Permalink
Stephen, thanks for your time. Please consider about make this part of
WinInet API public. This could be very useful for CSP implementators.

Thx Miro
Post by Stephen Sulzer
Miro,
You cannot obtain the HINTERNET handles that another component or program is
using.
The "Clear SSL State" button does not need the HINTERNET handles that IE is
using. The code behind the "Clear SSL State" button uses an
undocumented/private WinInet API to unload WinInet's cached SSL client
certificates.
Stephen
Post by Miro Masnoglav
I have no experience with WinInet API, but I think answer to this question
is NO.
Is it possible to get and close HINTERNET handles of all internet
connections on a PC?
Example: I have Internet Explorer connected to some SSL secured WEB
page.
Post by Stephen Sulzer
I
Post by Miro Masnoglav
want to simulate "Clear SSL state" button in Win XP
(ControlPanel\Internet
Post by Stephen Sulzer
Post by Miro Masnoglav
Options\Content). They told me (on another group) I should close all
Wininet
Post by Miro Masnoglav
handles in addition to call undocumented function SslClearCache from
schannel.dll..
My problem is: How to get this handles? How to get HINTERNET handle IE
uses
Post by Miro Masnoglav
it? Is it possible?
Thx for any help
Miro
Loading...