Lines Matching defs:vi
729 static BOOL My_RtlGetVersion(OSVERSIONINFOEXW *vi)
740 func(vi);
755 // OSVERSIONINFO vi;
756 OSVERSIONINFOEXW vi;
757 vi.dwOSVersionInfoSize = sizeof(vi);
758 // if (::GetVersionEx(&vi))
759 if (My_RtlGetVersion(&vi))
762 if (vi.dwPlatformId != VER_PLATFORM_WIN32_NT)
763 s.Add_UInt32(vi.dwPlatformId);
764 s.Add_Space(); s.Add_UInt32(vi.dwMajorVersion);
765 s.Add_Dot(); s.Add_UInt32(vi.dwMinorVersion);
766 s.Add_Space(); s.Add_UInt32(vi.dwBuildNumber);
768 if (vi.wServicePackMajor != 0 || vi.wServicePackMinor != 0)
770 s += " SP:"; s.Add_UInt32(vi.wServicePackMajor);
771 s.Add_Dot(); s.Add_UInt32(vi.wServicePackMinor);
773 // s += " Suite:"; PrintHex(s, vi.wSuiteMask);
774 // s += " Type:"; s.Add_UInt32(vi.wProductType);
775 // s.Add_Space(); s += GetOemString(vi.szCSDVersion);