Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Error text information for WinInet Error Codes

0 views
Skip to first unread message

Markus Strobl

unread,
Nov 24, 2003, 4:24:27 AM11/24/03
to
hi!

when using the wininet api, specific error information can be retrieved
using the winapi function
GetLastError(). to retrieve an error text i use the call

FormatMessage( FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS,
NULL, iErrorNr, 0, szBuffer, sizeof(szBuffer), NULL);

my problem is .. i can't get any error texts for the wininet - error numbers
12001-12156.
is there any other function to get error text information?

my application is running under winnt 4.0, sp6a

please help .. thanks a lot in advance - markus :)


Markus Strobl

unread,
Nov 24, 2003, 5:01:02 AM11/24/03
to
ok i solved it by myself by passing the modulehandle from the wininet.dll
and the flag FORMAT_MESSAGE_FROM_HMODULE to FormatMessage() when the error
number
is between 12000 and 13000 ...

bye


"Markus Strobl"
<m.strobl_if_youre_a_spam_...@racon-linz.at> schrieb
im Newsbeitrag news:eYuPDzms...@tk2msftngp13.phx.gbl...

0 new messages