On Sun, 22 Aug 2010 14:36:50 -0500, Andrej Mitrovic <andrej.mitrov...@gmail.com> wrote:

I did a mistake in the code.

If you want to use the UTF-8 version of GetVersionInfoEx, declare it like this:


BOOL GetVersionExA( LPOSVERSIONINFO lpVersionInfo );

alias GetVersionExA GetVersionEx;


And make the change to the TCHAR alias too.

Remember that a lot of Windows functions, specially the ones that deal with strings and characters, have two versions: functionNameA for ASCI/UTF-8 and functionNameW for UTF-16.

--
Yao G.

Reply via email to