From 2d12fc2ececcc08aae5462c566f66d6c434c026b Mon Sep 17 00:00:00 2001 From: Pomian Date: Sun, 17 Oct 2021 11:14:07 +0200 Subject: [PATCH] [Bugfix] Allow GET access to Computer SMBios table (#579) * Allow GET access to Computer SMBios table * Update Computer.cs Co-authored-by: PhyxionNL <7643972+PhyxionNL@users.noreply.github.com> --- LibreHardwareMonitorLib/Hardware/Computer.cs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/LibreHardwareMonitorLib/Hardware/Computer.cs b/LibreHardwareMonitorLib/Hardware/Computer.cs index db9a8e8..46912e1 100644 --- a/LibreHardwareMonitorLib/Hardware/Computer.cs +++ b/LibreHardwareMonitorLib/Hardware/Computer.cs @@ -76,6 +76,20 @@ namespace LibreHardwareMonitor.Hardware } } + /// + /// Contains computer information table read in accordance with System Management BIOS (SMBIOS) Reference Specification. + /// + public SMBios SMBios + { + get + { + if (!_open) + throw new InvalidOperationException("SMBIOS cannot be accessed before opening."); + + return _smbios; + } + } + /// /// Gets or sets a value indicating whether collecting information about devices should be enabled and updated. ///