* ntdll.h (RtlGetVersion): Declare.

* wincap.cc (wincapc::init): Rather than GetVersionEx, call
	RtlGetVersion which is not crippled by missing Windows 8.1 manifest.
	* wincap.h (wincapc): Change type of version to RTL_OSVERSIONINFOEXW.
	Align formatting of all class members.
This commit is contained in:
Corinna Vinschen
2013-11-19 22:21:11 +00:00
parent f8863cbe54
commit c9f36df332
5 changed files with 20 additions and 7 deletions

View File

@@ -172,8 +172,8 @@ wincapc::init ()
return; // already initialized
GetSystemInfo (&system_info);
version.dwOSVersionInfoSize = sizeof (OSVERSIONINFOEX);
GetVersionEx (reinterpret_cast<LPOSVERSIONINFO>(&version));
version.dwOSVersionInfoSize = sizeof (RTL_OSVERSIONINFOEXW);
RtlGetVersion (&version);
switch (version.dwMajorVersion)
{