I am using a Dutch version of Windows and I have this piece of code:
::FormatMessage
(
FORMAT_MESSAGE_ALLOCATE_BUFFER
| FORMAT_MESSAGE_FROM_SYSTEM
| FORMAT_MESSAGE_IGNORE_INSERTS,
NULL,
lastError,
MAKELANGID(LANG_NEUTRAL,SUBLANG_DEFAULT),
(LPTSTR)&lpMsgBuf,
0,
NULL
);
However, this returns the messages in Dutch. Would it possible to get the error messages in English instead?
I’m afraid not! AFAIK, the English resources aren’t available at all in other international editions of the OS.