mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 08:25:03 +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
1 changed files with 11 additions and 1 deletions
|
@ -156,7 +156,7 @@ LRESULT CALLBACK RosImageProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam
|
|||
if (hDC == NULL)
|
||||
goto Cleanup;
|
||||
|
||||
top = 0;
|
||||
top = 0;
|
||||
offset = 0;
|
||||
hCreditsDC = CreateCompatibleDC(hDC);
|
||||
hLogoDC = CreateCompatibleDC(hCreditsDC);
|
||||
|
@ -445,6 +445,7 @@ static VOID SetProcSpeed(HWND hwnd, HKEY hKey, LPTSTR Value, UINT uID)
|
|||
static VOID GetSystemInformation(HWND hwnd)
|
||||
{
|
||||
HKEY hKey;
|
||||
TCHAR SysKey[] = _T("HARDWARE\\DESCRIPTION\\System");
|
||||
TCHAR ProcKey[] = _T("HARDWARE\\DESCRIPTION\\System\\CentralProcessor\\0");
|
||||
MEMORYSTATUSEX MemStat;
|
||||
TCHAR Buf[32];
|
||||
|
@ -460,6 +461,15 @@ static VOID GetSystemInformation(HWND hwnd)
|
|||
SetDlgItemText(hwnd, CurMachineLine, SMBiosName);
|
||||
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
|
||||
* although undocumented, this information is being pulled
|
||||
|
|
Loading…
Reference in a new issue