mirror of https://github.com/lianthony/NT4.0
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
564 B
32 lines
564 B
// We create a static implementation of this class so that we always know
|
|
// that _fDBCSSystem and _lcidSystem have been set.
|
|
|
|
#include "stdafx.h"
|
|
|
|
class CDbcs
|
|
{
|
|
public:
|
|
CDbcs();
|
|
};
|
|
|
|
static CDbcs _cdbcs;
|
|
|
|
BOOL _fDBCSSystem;
|
|
LCID _lcidSystem;
|
|
BOOL _fDualCPU;
|
|
|
|
#include <winreg.h>
|
|
|
|
CDbcs::CDbcs()
|
|
{
|
|
_fDBCSSystem = IsDbcsSystem();
|
|
_lcidSystem = GetUserDefaultLCID();
|
|
|
|
HKEY hkey;
|
|
if (RegOpenKeyEx(HKEY_LOCAL_MACHINE,
|
|
"HARDWARE\\DESCRIPTION\\System\\CentralProcessor\\1", 0,
|
|
KEY_READ, &hkey) == ERROR_SUCCESS) {
|
|
_fDualCPU = TRUE;
|
|
RegCloseKey(hkey);
|
|
}
|
|
}
|