sav - 2017-04-14

After some investigations found the source of error. Build of cpp sample above craches using command g++ test.cpp but finishes successfully using command g++ test.cpp -DWINVER=0x601.
Futher investigations revealed, that mingw-w64 6.3.0 has definition WINVER=0x0502 (which relate to Windows Server 2003), while MSVC 2015, used for testing, has definition WINVER=0x0A00 (which relate to Windows 10).
Could you tell, how most of definitions from <Mingw64>/x86_64-w64-mingw32/include/winnls.h could be used, since they require WINVER=0x0600 or higher? I assume this should be described in mingw-w64 documentation, but was unable to find it.
Thank you.