Discussion:
facility_internet messages
(too old to reply)
Liviu
2011-04-24 19:46:20 UTC
Permalink
Where is one supposed to find the error text for
INET_E_RESOURCE_NOT_FOUND, for example?

FormatMessage with FORMAT_MESSAGE_FROM_SYSTEM
doesn't appear to cover the FACILITY_INTERNET codes.
As for FORMAT_MESSAGE_FROM_HMODULE, urlmon.dll
has no message table, and wininet.dll only has FACILITY_SSPI
entries that I can see.

Thanks,
Liviu
GreyCloud
2011-04-25 02:50:12 UTC
Permalink
Post by Liviu
Where is one supposed to find the error text for
INET_E_RESOURCE_NOT_FOUND, for example?
Don't really know if this will help, but:

http://www.teamdev.com/downloads/jniwrapper/winpack/javadoc/com/jniwrapper/win32/HResult.html
Post by Liviu
FormatMessage with FORMAT_MESSAGE_FROM_SYSTEM
doesn't appear to cover the FACILITY_INTERNET codes.
As for FORMAT_MESSAGE_FROM_HMODULE, urlmon.dll
has no message table, and wininet.dll only has FACILITY_SSPI
entries that I can see.
Thanks,
Liviu
--
"If they can make you believe absurdities they can make you commit
atrocities."
by Voltaire
Liviu
2011-04-25 04:08:20 UTC
Permalink
"GreyCloud" wrote...
Post by GreyCloud
Post by Liviu
Where is one supposed to find the error text for
INET_E_RESOURCE_NOT_FOUND, for example?
http://www.teamdev.com/downloads/jniwrapper/winpack/javadoc/com/jniwrapper/win32/HResult.html
Thanks, but that's not really what I was looking for. I can plug my
own text, but was trying to do it by the book and use the builtin
message (with its perks, like multi-language). Didn't quite work out,
per my other post.

Liviu
Liviu
2011-04-25 04:08:09 UTC
Permalink
Sometimes truth is stranger than fiction with all these windows ;-)

"Liviu" wrote...
Post by Liviu
Where is one supposed to find the error text for
INET_E_RESOURCE_NOT_FOUND, for example?
After a little digging around on an XP Sp3 IE8 system, the EN-US text
can be found in the MESSAGETABLE of
%SystemRoot%\System32\en-us\urlmon.dll.mui.

First question is how on earth is one supposed to know and look it up
in that module. It's not "obvious" to me, and neither is it to MS's own
maintainers of the official FormatMessage, apparently.
Post by Liviu
As for FORMAT_MESSAGE_FROM_HMODULE,
urlmon.dll has no message table
Small correction: _no_longer_ has a message table.

It used to have its own MESSAGETABLE as recently as XP Sp3
(urlmon.dll v6.00.2900.5512), which covered the error codes #define'd
in urlmon.h, FormatMessage was able to look them up, and everything
worked as advertised.

Then somewhere between the security updates and IE8 came urlmon.dll
v8.00.6001.19019 which no longer has the MESSAGETABLE and
abruptly breaks FormatMessage for the INET_E_ range. I can only wonder
what the deep thinking was.

Liviu

Loading...