18#if defined(__BORLANDC__)
98 return GetVersionInfo().GetProductVersion();
117 WARN(!
r,
_T(
"IsWow64Process failed. LastError: ") << GetLastError());
InUse(
r);
153 typedef std::map<uint, tstring>
TMap;
154 typedef TMap::value_type T;
193 template <
class TReturn>
226struct TSystem::TProcessorInfo::TImpl
261 return Pimpl->VendorId;
266 return Pimpl->Identifier;
275 typedef std::map<tstring, tstring>
TMap;
276 typedef TMap::value_type T;
279 T(
_T(
"AuthenticAMD"),
_T(
"AMD")),
280 T(
_T(
"GenuineIntel"),
_T(
"Intel")),
281 T(
_T(
"CyrixInstead"),
_T(
"Cyrix")),
282 T(
_T(
"CentaurHauls"),
_T(
"Centaur")),
283 T(
_T(
"RiseRiseRise"),
_T(
"Rise")),
284 T(
_T(
"GenuineTMx86"),
_T(
"Transmeta")),
285 T(
_T(
"UMC UMC UMC "),
_T(
"UMC"))
298 return Pimpl->Frequency;
#define WARN(condition, message)
TModuleVersionInfo provides access to a TModule's VERSIONINFO resource.
static auto GetLocalMachine() -> TRegKey &
Special predefined root key defining the physical state of the computer (HKEY_LOCAL_MACHINE).
Encapsulates information about a processor core.
int GetNominalFrequency() const
Returns the frequency of CPU 0 as reported by the Windows Registry ("CentralProcessor/0/~MHz").
TProcessorInfo()
Queries CPU info and initializes members.
static tstring GetVendorName(const tstring &vendorId)
Returns the name of the CPU vendor.
tstring GetVendorId() const
auto GetIdentifier() const -> tstring
static uint GetBuildNumber()
static bool IsWin64Bit()
Returns true if the OS is 64-bit.
static int GetNumberOfProcessors()
Returns the value of the SYSTEM_INFO::dwNumberOfProcessors field returned by ::GetSystemInfo.
static auto GetVersionStr() -> tstring
static uint GetMinorVersion()
static uint GetProcessorArchitecture()
Returns the value of the SYSTEM_INFO::wProcessorArchitecture field returned by ::GetSystemInfo.
static uint GetMajorVersion()
static tstring GetProcessorArchitectureName(uint architecture)
Returns the description string for the given processor architecture.
static auto GetVersionInfo() -> TModuleVersionInfo &
Returns the product version for "kernel32.dll".
static const TProcessorInfo & GetProcessorInfo()
Returns info for the current processor.
static uint GetProductInfo()
Retrieves the product edition for the operating system on the local computer, and maps the type to th...
Definition of class TModule.
Object Windows Library (OWLNext Core)
void InUse(const T &arg)
Handy utility to avoid compiler warnings about unused parameters.
auto to_tstring(const T &v) -> tstring
#define COUNTOF(s)
Array element count Important: Only use this with an argument of array type.
General Registry access & registration implementation TRegKey, TRegValue, TRegKeyIterator,...
Definition of TSystem, a system information provider class.