JD2022-TU1/main/extern/ITNetwork/gear/tools/systemdetection/systemdetectionos.h

65 lines
2.1 KiB
C++

////////////////////////////////////////////////////////////////////////////////
//
// Copyright (c) Ubisoft Entertainment. All rights reserved.
//
// ProjectFolder: os
// BelongsToModule: gearsystemdetectionhardware
// ScanFlags: Ignore
//
////////////////////////////////////////////////////////////////////////////////
#pragma once
#ifndef GEAR_SYSTEMDETECTIONOS__INCLUDED
#define GEAR_SYSTEMDETECTIONOS__INCLUDED
GEAR_BEGIN_MODULE(systemdetection, gearsystemdetectionhardware)
namespace SystemDetection
{
class GEAR_DLL_ENTRY OS
{
public:
/// Windows version
enum WindowsVersion
{
WINDOWSVERSION_UNKNOWN = 0,
WINDOWSVERSION_95 = 1,
WINDOWSVERSION_98 = 2,
WINDOWSVERSION_ME = 3,
WINDOWSVERSION_2000 = 4,
WINDOWSVERSION_XP = 5,
WINDOWSVERSION_VISTA = 6,
WINDOWSVERSION_SEVEN = 7,
WINDOWSVERSION_NT = 100,
WINDOWSVERSION_SERVER_2003 = 101,
WINDOWSVERSION_SERVER_2008 = 102,
WINDOWSVERSION_SERVER_2008_R2 = 103,
};
/// Windows version
WindowsVersion windowsVersion;
/// Last service pack installed
unsigned long servicePack;
/// Flag that indicates if the operating supports running 64 bit applications
bool supports64Bits;
// Gets the two-letter code (Upper case) defined in ISO 3166 for the country/region.
// http://www.iso.org/iso/country_codes/iso_3166_code_lists/english_country_names_and_code_elements.htm
// http://msdn.microsoft.com/en-us/library/bb507201(VS.85).aspx
// We use LOCALE_SISO3166CTRYNAME:
/// Country/region name, based on ISO Standard 3166, for example, "US" for the United States.
/// The maximum number of characters allowed for this string is nine, including a terminating null character.
char isoRegionName[9];
};
}//namespace SystemDetection
GEAR_END_MODULE()
#endif