How do you call GetVersionEx (Windows)?

Yao G. nospamyao at gmail.com
Sun Aug 22 13:08:24 PDT 2010


On Sun, 22 Aug 2010 14:36:50 -0500, Andrej Mitrovic  
<andrej.mitrovich at 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.


More information about the Digitalmars-d-learn mailing list