Discussion:
Undocumented INTERNET_STATUS codes
(too old to reply)
TxITGuy
2005-03-04 21:53:02 UTC
Permalink
This may be nothing, but in the process of testing my code for WinInet, the
callback function received two INTERNET_STATUS codes that do not appear to be
documented anywhere. I 'm hoping someone here will recognize them.

I wanted to test a redirect handler ... and so need a site that used a
server redirect. I chose to use the URL "http://www.microsoft.com/msdn",
since it redirects to "http://msdn.microsoft.com/". In the process of
loading this page, the callback function received the following into
dwInetStatus:

INTERNET_STATUS_HANDLE_CREATED
INTERNET_STATUS_HANDLE_CREATED
INTERNET_STATUS_DETECTING_PROXY
320
INTERNET_STATUS_RESOLVING_NAME
INTERNET_STATUS_NAME_RESOLVED
INTERNET_STATUS_CONNECTING_TO_SERVER
INTERNET_STATUS_CONNECTED_TO_SERVER
INTERNET_STATUS_SENDING_REQUEST
INTERNET_STATUS_REQUEST_SENT
INTERNET_STATUS_RECEIVING_RESPONSE
INTERNET_STATUS_RESPONSE_RECEIVED
325
INTERNET_STATUS_REDIRECT http://msdn.microsoft.com/
INTERNET_STATUS_DETECTING_PROXY
320
INTERNET_STATUS_RESOLVING_NAME
INTERNET_STATUS_NAME_RESOLVED
INTERNET_STATUS_CONNECTING_TO_SERVER
INTERNET_STATUS_CONNECTED_TO_SERVER
INTERNET_STATUS_SENDING_REQUEST
INTERNET_STATUS_REQUEST_SENT
INTERNET_STATUS_RECEIVING_RESPONSE
INTERNET_STATUS_RESPONSE_RECEIVED
325
INTERNET_STATUS_REQUEST_COMPLETE

What do 320 and 325 mean?

Thanks,
Ben
Stephen Sulzer
2005-03-05 00:44:07 UTC
Permalink
It looks like your WinInet.h header file is out of date. You might want to
update your Windows Platform SDK files.

#define INTERNET_STATUS_COOKIE_SENT 320
#define INTERNET_STATUS_COOKIE_RECEIVED 321
#define INTERNET_STATUS_PRIVACY_IMPACTED 324
#define INTERNET_STATUS_P3P_HEADER 325
#define INTERNET_STATUS_P3P_POLICYREF 326
#define INTERNET_STATUS_COOKIE_HISTORY 327

These new INTERNET_STATUS codes were defined for Internet Explorer 6, I
think. But they are not documented in MSDN.

- Stephen
TxITGuy
2005-03-07 17:33:04 UTC
Permalink
Thanks, very much. Now I just need to know what "lpvStatusInfo" contains
when each of these status values are returned to the callback function. I'm
going to try to look it up using the info you've given here. If you know,
however, I would also appreciate your posting that information.

Ben

--original message--
<snip>
#define INTERNET_STATUS_COOKIE_SENT 320
#define INTERNET_STATUS_COOKIE_RECEIVED 321
#define INTERNET_STATUS_PRIVACY_IMPACTED 324
#define INTERNET_STATUS_P3P_HEADER 325
#define INTERNET_STATUS_P3P_POLICYREF 326
#define INTERNET_STATUS_COOKIE_HISTORY 327
</snip>
Stephen Sulzer
2005-03-08 03:15:51 UTC
Permalink
I don't know if this information is documented officially anywhere, but here
is what I have determined what each status code provides in the
lpvStatusInformation pointer:

INTERNET_STATUS_COOKIE_SENT: a pointer to an OutgoingCookieState structure.
INTERNET_STATUS_COOKIE_RECEIVED: a pointer to an IncomingCookieState
structure.
INTERNET_STATUS_PRIVACY_IMPACTED: unknown; I am not certain that WinInet
ever actually sends this status code.
INTERNET_STATUS_P3P_HEADER: a string pointer (the P3P response header).
INTERNET_STATUS_P3P_POLICYREF: a string pointer (the URL of the web server's
P3P policy).
INTERNET_STATUS_COOKIE_HISTORY: a pointer to an InternetCookieHistory
structure.

That's all the information I have.

The Outgoing/IncomingCookieState and InternetCookieHistory structures are
defined in wininet.h. You will need a recent Platform SDK (at least February
2003 edition).

- Stephen
Post by TxITGuy
Thanks, very much. Now I just need to know what "lpvStatusInfo" contains
when each of these status values are returned to the callback function.
I'm
Post by TxITGuy
going to try to look it up using the info you've given here. If you know,
however, I would also appreciate your posting that information.
Ben
--original message--
<snip>
#define INTERNET_STATUS_COOKIE_SENT 320
#define INTERNET_STATUS_COOKIE_RECEIVED 321
#define INTERNET_STATUS_PRIVACY_IMPACTED 324
#define INTERNET_STATUS_P3P_HEADER 325
#define INTERNET_STATUS_P3P_POLICYREF 326
#define INTERNET_STATUS_COOKIE_HISTORY 327
</snip>
Continue reading on narkive:
Loading...