mirror of
https://github.com/reactos/reactos.git
synced 2024-07-08 05:35:06 +00:00
[SYSDM] Display system identifier when SMBIOS is not available
Actual for NEC PC-98 and Original Xbox ports.
This commit is contained in:
parent
ba006b3d49
commit
06198c51ac
|
@ -445,6 +445,7 @@ static VOID SetProcSpeed(HWND hwnd, HKEY hKey, LPTSTR Value, UINT uID)
|
||||||
static VOID GetSystemInformation(HWND hwnd)
|
static VOID GetSystemInformation(HWND hwnd)
|
||||||
{
|
{
|
||||||
HKEY hKey;
|
HKEY hKey;
|
||||||
|
TCHAR SysKey[] = _T("HARDWARE\\DESCRIPTION\\System");
|
||||||
TCHAR ProcKey[] = _T("HARDWARE\\DESCRIPTION\\System\\CentralProcessor\\0");
|
TCHAR ProcKey[] = _T("HARDWARE\\DESCRIPTION\\System\\CentralProcessor\\0");
|
||||||
MEMORYSTATUSEX MemStat;
|
MEMORYSTATUSEX MemStat;
|
||||||
TCHAR Buf[32];
|
TCHAR Buf[32];
|
||||||
|
@ -460,6 +461,15 @@ static VOID GetSystemInformation(HWND hwnd)
|
||||||
SetDlgItemText(hwnd, CurMachineLine, SMBiosName);
|
SetDlgItemText(hwnd, CurMachineLine, SMBiosName);
|
||||||
CurMachineLine++;
|
CurMachineLine++;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
/* If SMBIOS is not available, use System Identifier */
|
||||||
|
if (RegOpenKeyEx(HKEY_LOCAL_MACHINE, SysKey, 0, KEY_READ, &hKey) == ERROR_SUCCESS)
|
||||||
|
{
|
||||||
|
SetRegTextData(hwnd, hKey, _T("Identifier"), CurMachineLine);
|
||||||
|
CurMachineLine++;
|
||||||
|
}
|
||||||
|
}
|
||||||
/*
|
/*
|
||||||
* Get Processor information
|
* Get Processor information
|
||||||
* although undocumented, this information is being pulled
|
* although undocumented, this information is being pulled
|
||||||
|
|
Loading…
Reference in a new issue