Skip to content

Commit

Permalink
ExtendedTools smbios sys config options
Browse files Browse the repository at this point in the history
  • Loading branch information
jxy-s committed Jan 10, 2025
1 parent 09f959f commit 82aec21
Showing 1 changed file with 26 additions and 2 deletions.
28 changes: 26 additions & 2 deletions plugins/ExtendedTools/smbios.c
Original file line number Diff line number Diff line change
Expand Up @@ -1723,8 +1723,32 @@ VOID EtSMBIOSSystemConfigurationOption(
_In_ PSMBIOS_WINDOW_CONTEXT Context
)
{
ET_SMBIOS_GROUP(L"System configuration option");
ET_SMBIOS_TODO();
if (!PH_SMBIOS_CONTAINS_FIELD(Entry, SystemConfigurationOption, Count))
return;

ET_SMBIOS_GROUP(L"System configuration options");
ET_SMBIOS_UINT32IX(L"Handle", Entry->Header.Handle);
ET_SMBIOS_UINT32(L"Number of strings", Entry->SystemConfigurationOption.Count);

for (UCHAR i = 0; i < Entry->OEMString.Count; i++)
{
PH_FORMAT format[2];
PPH_STRING name;
PPH_STRING string;

if (!NT_SUCCESS(PhGetSMBIOSString(EnumHandle, i + 1, &string)))
break;

PhInitFormatS(&format[0], L"String #");
PhInitFormatU(&format[1], i + 1);

name = PhFormat(format, 2, 10);

EtAddSMBIOSItem(Context, group, PhGetString(name), PhGetString(string));

PhDereferenceObject(string);
PhDereferenceObject(name);
}
}

VOID EtSMBIOSFirmwareLanguage(
Expand Down

0 comments on commit 82aec21

Please sign in to comment.