mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 04:13:34 +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:
+11
-1
@@ -156,7 +156,7 @@ LRESULT CALLBACK RosImageProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam
|
|||||||
if (hDC == NULL)
|
if (hDC == NULL)
|
||||||
goto Cleanup;
|
goto Cleanup;
|
||||||
|
|
||||||
top = 0;
|
top = 0;
|
||||||
offset = 0;
|
offset = 0;
|
||||||
hCreditsDC = CreateCompatibleDC(hDC);
|
hCreditsDC = CreateCompatibleDC(hDC);
|
||||||
hLogoDC = CreateCompatibleDC(hCreditsDC);
|
hLogoDC = CreateCompatibleDC(hCreditsDC);
|
||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user