Vinzenz Feenstra
2006-07-21 23:26:41 UTC
Hi,
I'm trying to force FormatMessage to use us-english. Since the PSDK says:
<quote PSDK FormatMessage Docs>
If you pass a specific LANGID in this parameter, FormatMessage will
return a message for that LANGID only. If the function cannot find a
message for that LANGID, it returns ERROR_RESOURCE_LANG_NOT_FOUND. If
you pass in zero, FormatMessage looks for a message for LANGIDs in the
following order:
1. Language neutral
2. Thread LANGID, based on the thread's locale value
3. User default LANGID, based on the user's default locale value
4. System default LANGID, based on the system default locale value
5. US English
</quote>
So what the heck is going on that I don't get US English if I use the
US-English LANGID (0x409 taken from the PSDK Docs as well)
Has anyone an idea if it is possible, at all?
If not, I would have to use only error codes for my logging stuff.
:/
(I don't want to ask a customer for logs and he sends me the logs and
the messages are chinese or something *fg* ^^)
Thanks.
Regards,
Vinzenz
I'm trying to force FormatMessage to use us-english. Since the PSDK says:
<quote PSDK FormatMessage Docs>
If you pass a specific LANGID in this parameter, FormatMessage will
return a message for that LANGID only. If the function cannot find a
message for that LANGID, it returns ERROR_RESOURCE_LANG_NOT_FOUND. If
you pass in zero, FormatMessage looks for a message for LANGIDs in the
following order:
1. Language neutral
2. Thread LANGID, based on the thread's locale value
3. User default LANGID, based on the user's default locale value
4. System default LANGID, based on the system default locale value
5. US English
</quote>
So what the heck is going on that I don't get US English if I use the
US-English LANGID (0x409 taken from the PSDK Docs as well)
Has anyone an idea if it is possible, at all?
If not, I would have to use only error codes for my logging stuff.
:/
(I don't want to ask a customer for logs and he sends me the logs and
the messages are chinese or something *fg* ^^)
Thanks.
Regards,
Vinzenz