MCPcopy Create free account
hub / github.com/bumptop/BumpTop / IsWindowsVersion

Method IsWindowsVersion

trunk/win/Source/BT_WindowsOS.cpp:5516–5535  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5514}
5515
5516bool WindowsSystem::IsWindowsVersion(WindowsOSVersion version)
5517{
5518 // Object used to store OS version information
5519 OSVERSIONINFO osvi = GetOSVersionInfo();
5520
5521 // 5 - 2k, xp, 2003
5522 // 6 - vista
5523 // 6.1 - win7 beta
5524 switch (version)
5525 {
5526 case Windows7:
5527 return osvi.dwMajorVersion == 6 && osvi.dwMinorVersion > 0;
5528 case WindowsVista:
5529 return osvi.dwMajorVersion == 6;
5530 case WindowsXP:
5531 return osvi.dwMajorVersion <= 5;
5532 default:
5533 return false;
5534 }
5535}
5536
5537bool WindowsSystem::IsWindowsVersionGreaterThanOrEqualTo(WindowsOSVersion version)
5538{

Callers 7

setFilePathMethod · 0.80
GlobalSettingsMethod · 0.80
~FileSystemPileMethod · 0.80
setOwnerMethod · 0.80
invokeCommandMethod · 0.80
getMenuMethod · 0.80
initMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected