https://git.reactos.org/?p=reactos.git;a=commitdiff;h=c3568045502799c90da5f…
commit c3568045502799c90da5f258e4d31c99995cc347
Author: Stanislav Motylkov <x86corez(a)gmail.com>
AuthorDate: Thu Sep 27 22:02:17 2018 +0300
Commit: Stanislav Motylkov <x86corez(a)gmail.com>
CommitDate: Sat Sep 29 17:10:48 2018 +0300
[DMILIB] Process SKU and Family strings
---
sdk/lib/dmilib/dmi.h | 2 ++
sdk/lib/dmilib/dmilib.c | 2 ++
sdk/lib/dmilib/dmilib.h | 2 ++
3 files changed, 6 insertions(+)
diff --git a/sdk/lib/dmilib/dmi.h b/sdk/lib/dmilib/dmi.h
index 855b69703e..07dfc5dd0f 100644
--- a/sdk/lib/dmilib/dmi.h
+++ b/sdk/lib/dmilib/dmi.h
@@ -87,6 +87,8 @@ enum _DMI_FIELD_OFFSETS
DMI_SYS_PRODUCT = 0x05,
DMI_SYS_VERSION = 0x06,
DMI_SYS_SERIAL = 0x07,
+ DMI_SYS_SKU = 0x19,
+ DMI_SYS_FAMILY = 0x1a,
DMI_SYS_SIZE = 0x1b,
/* Type = 2: DMI_ENTRY_BASEBOARD */
diff --git a/sdk/lib/dmilib/dmilib.c b/sdk/lib/dmilib/dmilib.c
index 7571fcaf71..e7469befc5 100644
--- a/sdk/lib/dmilib/dmilib.c
+++ b/sdk/lib/dmilib/dmilib.c
@@ -73,6 +73,8 @@ ParseSMBiosTables(
Strings[SYS_PRODUCT] = GetDmiString(Header, DMI_SYS_PRODUCT);
Strings[SYS_VERSION] = GetDmiString(Header, DMI_SYS_VERSION);
Strings[SYS_SERIAL] = GetDmiString(Header, DMI_SYS_SERIAL);
+ Strings[SYS_SKU] = GetDmiString(Header, DMI_SYS_SKU);
+ Strings[SYS_FAMILY] = GetDmiString(Header, DMI_SYS_FAMILY);
break;
case DMI_ENTRY_BASEBOARD:
diff --git a/sdk/lib/dmilib/dmilib.h b/sdk/lib/dmilib/dmilib.h
index 22f2331725..9bfcf5f507 100644
--- a/sdk/lib/dmilib/dmilib.h
+++ b/sdk/lib/dmilib/dmilib.h
@@ -18,6 +18,8 @@ enum _ID_STRINGS
SYS_PRODUCT,
SYS_VERSION,
SYS_SERIAL,
+ SYS_SKU,
+ SYS_FAMILY,
BOARD_VENDOR,
BOARD_NAME,
BOARD_VERSION,