示例#1
0
        /// <inheritdoc />
        /// <summary>
        /// Populates the property collection for this structure.
        /// </summary>
        /// <param name="properties">Collection of properties of this structure.</param>
        protected override void PopulateProperties(DmiClassPropertiesTable properties)
        {
            if (SmbiosStructure.StructureInfo.Length >= 0x05)
            {
                object installableLanguages = SmbiosStructure.GetPropertyValue(SmbiosProperty.BiosLanguage.InstallableLanguages);
                if (installableLanguages != null)
                {
                    properties.Add(DmiProperty.BiosLanguage.InstallableLanguages, installableLanguages);
                }
            }

            if (SmbiosStructure.StructureInfo.Length >= 0x06)
            {
                object isCurrentAbbreviated = SmbiosStructure.GetPropertyValue(SmbiosProperty.BiosLanguage.IsCurrentAbbreviated);
                if (isCurrentAbbreviated != null)
                {
                    properties.Add(DmiProperty.BiosLanguage.IsCurrentAbbreviated, isCurrentAbbreviated);
                }
            }

            if (SmbiosStructure.StructureInfo.Length >= 0x16)
            {
                object current = SmbiosStructure.GetPropertyValue(SmbiosProperty.BiosLanguage.Current);
                if (current != null)
                {
                    properties.Add(DmiProperty.BiosLanguage.Current, current);
                }
            }
        }
示例#2
0
        /// <inheritdoc />
        /// <summary>
        /// Populates the property collection for this structure.
        /// </summary>
        /// <param name="properties">Collection of properties of this structure.</param>
        protected override void PopulateProperties(DmiClassPropertiesTable properties)
        {
            object description = SmbiosStructure.GetPropertyValue(SmbiosProperty.ManagementDeviceComponent.Description);

            if (description != null)
            {
                properties.Add(DmiProperty.ManagementDeviceComponent.Description, description);
            }

            object managementDeviceHandle = SmbiosStructure.GetPropertyValue(SmbiosProperty.ManagementDeviceComponent.ManagementDeviceHandle);

            if (managementDeviceHandle != null)
            {
                properties.Add(DmiProperty.ManagementDeviceComponent.ManagementDeviceHandle, managementDeviceHandle);
            }

            object componentHandle = SmbiosStructure.GetPropertyValue(SmbiosProperty.ManagementDeviceComponent.ComponentHandle);

            if (componentHandle != null)
            {
                properties.Add(DmiProperty.ManagementDeviceComponent.ComponentHandle, componentHandle);
            }

            object thresholdHandleProperty = SmbiosStructure.GetPropertyValue(SmbiosProperty.ManagementDeviceComponent.ThresholdHandle);

            if (thresholdHandleProperty != null)
            {
                int thresholdHandle = (int)thresholdHandleProperty;
                if (thresholdHandle != 0xffff)
                {
                    properties.Add(DmiProperty.ManagementDeviceComponent.ThresholdHandle, thresholdHandle);
                }
            }
        }
        /// <inheritdoc />
        /// <summary>
        /// Populates the property collection for this structure.
        /// </summary>
        /// <param name="properties">Collection of properties of this structure.</param>
        protected override void PopulateProperties(DmiClassPropertiesTable properties)
        {
            object description = SmbiosStructure.GetPropertyValue(SmbiosProperty.ManagementDevice.Description);

            if (description != null)
            {
                properties.Add(DmiProperty.ManagementDevice.Description, description);
            }

            object type = SmbiosStructure.GetPropertyValue(SmbiosProperty.ManagementDevice.Type);

            if (type != null)
            {
                properties.Add(DmiProperty.ManagementDevice.Type, type);
            }

            object address = SmbiosStructure.GetPropertyValue(SmbiosProperty.ManagementDevice.Address);

            if (address != null)
            {
                properties.Add(DmiProperty.ManagementDevice.Address, address);
            }

            object addressType = SmbiosStructure.GetPropertyValue(SmbiosProperty.ManagementDevice.AddressType);

            if (addressType != null)
            {
                properties.Add(DmiProperty.ManagementDevice.AddressType, addressType);
            }
        }
示例#4
0
        /// <inheritdoc/>
        /// <summary>
        /// Populates the property collection for this structure.
        /// </summary>
        /// <param name="properties">Collection of properties of this structure.</param>
        protected override void PopulateProperties(DmiClassPropertiesTable properties)
        {
            if (ImplementedVersion < DmiStructureVersion.v21)
            {
                return;
            }

            properties.Add(DmiProperty.MemoryArrayMappedAddress.MemoryArrayHandle, SmbiosStructure.GetPropertyValue(SmbiosProperty.MemoryArrayMappedAddress.MemoryArrayHandle));
            properties.Add(DmiProperty.MemoryArrayMappedAddress.PartitionWidth, SmbiosStructure.GetPropertyValue(SmbiosProperty.MemoryArrayMappedAddress.PartitionWidth));

            uint startingAddress = SmbiosStructure.GetPropertyValue <uint>(SmbiosProperty.MemoryArrayMappedAddress.StartingAddress);

            properties.Add(
                DmiProperty.MemoryArrayMappedAddress.StartingAddress,
                startingAddress == 0xffffffff
                    ? SmbiosStructure.GetPropertyValue(SmbiosProperty.MemoryArrayMappedAddress.ExtendedStartingAddress)
                    : (ulong)startingAddress * (ulong)1024);

            uint endingAddress = SmbiosStructure.GetPropertyValue <uint>(SmbiosProperty.MemoryArrayMappedAddress.EndingAddress);

            properties.Add(
                DmiProperty.MemoryArrayMappedAddress.EndingAddress,
                endingAddress == 0xffffffff
                    ? SmbiosStructure.GetPropertyValue(SmbiosProperty.MemoryArrayMappedAddress.ExtendedEndingAddress)
                    : (ulong)endingAddress * (ulong)1024);
        }
        /// <inheritdoc />
        /// <summary>
        /// Populates the property collection for this structure.
        /// </summary>
        /// <param name="properties">Collection of properties of this structure.</param>
        protected override void PopulateProperties(DmiClassPropertiesTable properties)
        {
            object extendedStartingAddress = SmbiosStructure.GetPropertyValue(SmbiosProperty.MemoryArrayMappedAddress.ExtendedStartingAddress);

            if (extendedStartingAddress != null)
            {
                properties.Add(DmiProperty.MemoryArrayMappedAddress.StartAddress, extendedStartingAddress);
            }

            object extendedEndingAddress = SmbiosStructure.GetPropertyValue(SmbiosProperty.MemoryArrayMappedAddress.ExtendedEndingAddress);

            if (extendedEndingAddress != null)
            {
                properties.Add(DmiProperty.MemoryArrayMappedAddress.EndAddress, extendedEndingAddress);
            }

            object memoryArrayHandle = SmbiosStructure.GetPropertyValue(SmbiosProperty.MemoryArrayMappedAddress.MemoryArrayHandle);

            if (memoryArrayHandle != null)
            {
                properties.Add(DmiProperty.MemoryArrayMappedAddress.MemoryArrayHandle, memoryArrayHandle);
            }

            object partitionWidth = SmbiosStructure.GetPropertyValue(SmbiosProperty.MemoryArrayMappedAddress.PartitionWidth);

            if (partitionWidth != null)
            {
                properties.Add(DmiProperty.MemoryArrayMappedAddress.PartitionWidth, partitionWidth);
            }
        }
        /// <inheritdoc />
        /// <summary>
        /// Populates the property collection for this structure.
        /// </summary>
        /// <param name="properties">Collection of properties of this structure.</param>
        protected override void PopulateProperties(DmiClassPropertiesTable properties)
        {
            object frontPanelResetStatus = SmbiosStructure.GetPropertyValue(SmbiosProperty.HardwareSecurity.HardwareSecuritySettings.FrontPanelResetStatus);

            if (frontPanelResetStatus != null)
            {
                properties.Add(DmiProperty.HardwareSecurity.HardwareSecuritySettings.FrontPanelResetStatus, frontPanelResetStatus);
            }

            object administratorPasswordStatus = SmbiosStructure.GetPropertyValue(SmbiosProperty.HardwareSecurity.HardwareSecuritySettings.AdministratorPasswordStatus);

            if (administratorPasswordStatus != null)
            {
                properties.Add(DmiProperty.HardwareSecurity.HardwareSecuritySettings.AdministratorPasswordStatus, administratorPasswordStatus);
            }

            object keyboardPasswordStatus = SmbiosStructure.GetPropertyValue(SmbiosProperty.HardwareSecurity.HardwareSecuritySettings.KeyboardPasswordStatus);

            if (keyboardPasswordStatus != null)
            {
                properties.Add(DmiProperty.HardwareSecurity.HardwareSecuritySettings.KeyboardPasswordStatus, keyboardPasswordStatus);
            }

            object powerOnPasswordStatus = SmbiosStructure.GetPropertyValue(SmbiosProperty.HardwareSecurity.HardwareSecuritySettings.PowerOnPasswordStatus);

            if (powerOnPasswordStatus != null)
            {
                properties.Add(DmiProperty.HardwareSecurity.HardwareSecuritySettings.PowerOnPasswordStatus, powerOnPasswordStatus);
            }
        }
示例#7
0
        /// <inheritdoc />
        /// <summary>
        /// Populates the property collection for this structure.
        /// </summary>
        /// <param name="properties">Collection of properties of this structure.</param>
        protected override void PopulateProperties(DmiClassPropertiesTable properties)
        {
            object interfaceType = SmbiosStructure.GetPropertyValue(SmbiosProperty.ManagementControllerHostInterface.InterfaceType);

            if (interfaceType != null)
            {
                properties.Add(DmiProperty.ManagementControllerHostInterface.InterfaceType, interfaceType);
            }

            if (SmbiosStructure.StructureInfo.Length >= 0x07)
            {
                object interfaceTypeSpecificData = SmbiosStructure.GetPropertyValue(SmbiosProperty.ManagementControllerHostInterface.InterfaceTypeSpecificData);
                if (interfaceTypeSpecificData != null)
                {
                    properties.Add(DmiProperty.ManagementControllerHostInterface.InterfaceTypeSpecificData, interfaceTypeSpecificData);
                }
            }

            object protocols = SmbiosStructure.GetPropertyValue(SmbiosProperty.ManagementControllerHostInterface.Protocols);

            if (protocols != null)
            {
                properties.Add(DmiProperty.ManagementControllerHostInterface.Protocols, new DmiManagementControllerHostInterfaceProtocolRecordsCollection((ManagementControllerHostInterfaceProtocolRecordsCollection)protocols));
            }
        }
示例#8
0
        /// <inheritdoc/>
        /// <summary>
        /// Populates the property collection for this structure.
        /// </summary>
        /// <param name="properties">Collection of properties of this structure.</param>
        protected override void PopulateProperties(DmiClassPropertiesTable properties)
        {
            properties.Add(DmiProperty.GroupAssociations.GroupName, SmbiosStructure.GetPropertyValue(SmbiosProperty.GroupAssociations.GroupName));

            object containedElements = SmbiosStructure.GetPropertyValue(SmbiosProperty.GroupAssociations.ContainedElements);

            properties.Add(DmiProperty.GroupAssociations.ContainedElements, new DmiGroupAssociationElementCollection((GroupAssociationElementCollection)containedElements));
        }
示例#9
0
 /// <inheritdoc/>
 /// <summary>
 /// Populates the property collection for this structure.
 /// </summary>
 /// <param name="properties">Collection of properties of this structure.</param>
 protected override void PopulateProperties(DmiClassPropertiesTable properties)
 {
     properties.Add(DmiProperty.PortConnector.InternalReferenceDesignator, SmbiosStructure.GetPropertyValue(SmbiosProperty.PortConnector.InternalReferenceDesignator));
     properties.Add(DmiProperty.PortConnector.InternalConnectorType, SmbiosStructure.GetPropertyValue(SmbiosProperty.PortConnector.InternalConnectorType));
     properties.Add(DmiProperty.PortConnector.ExternalReferenceDesignator, SmbiosStructure.GetPropertyValue(SmbiosProperty.PortConnector.ExternalReferenceDesignator));
     properties.Add(DmiProperty.PortConnector.ExternalConnectorType, SmbiosStructure.GetPropertyValue(SmbiosProperty.PortConnector.ExternalConnectorType));
     properties.Add(DmiProperty.PortConnector.PortType, SmbiosStructure.GetPropertyValue(SmbiosProperty.PortConnector.PortType));
 }
示例#10
0
        /// <inheritdoc/>
        /// <summary>
        /// Populates the property collection for this structure.
        /// </summary>
        /// <param name="properties">Collection of properties of this structure.</param>
        protected override void PopulateProperties(DmiClassPropertiesTable properties)
        {
            if (ImplementedVersion < DmiStructureVersion.v21)
            {
                return;
            }

            properties.Add(DmiProperty.BuiltInPointingDevice.NumberOfButtons, SmbiosStructure.GetPropertyValue(SmbiosProperty.BuiltInPointingDevice.NumberOfButtons));
            properties.Add(DmiProperty.BuiltInPointingDevice.Type, SmbiosStructure.GetPropertyValue(SmbiosProperty.BuiltInPointingDevice.Type));
            properties.Add(DmiProperty.BuiltInPointingDevice.Interface, SmbiosStructure.GetPropertyValue(SmbiosProperty.BuiltInPointingDevice.Interface));
        }
        /// <inheritdoc/>
        /// <summary>
        /// Populates the property collection for this structure.
        /// </summary>
        /// <param name="properties">Collection of properties of this structure.</param>
        protected override void PopulateProperties(DmiClassPropertiesTable properties)
        {
            if (ImplementedVersion < DmiStructureVersion.Latest)
            {
                return;
            }

            properties.Add(DmiProperty.OnBoardDevicesExtended.ReferenceDesignation, SmbiosStructure.GetPropertyValue(SmbiosProperty.OnBoardDevicesExtended.ReferenceDesignation));
            properties.Add(DmiProperty.OnBoardDevicesExtended.Element.DeviceStatus, SmbiosStructure.GetPropertyValue(SmbiosProperty.OnBoardDevicesExtended.Element.DeviceStatus));
            properties.Add(DmiProperty.OnBoardDevicesExtended.Element.DeviceType, SmbiosStructure.GetPropertyValue(SmbiosProperty.OnBoardDevicesExtended.Element.DeviceType));
        }
        /// <inheritdoc/>
        /// <summary>
        /// Populates the property collection for this structure.
        /// </summary>
        /// <param name="properties">Collection of properties of this structure.</param>
        protected override void PopulateProperties(DmiClassPropertiesTable properties)
        {
            if (ImplementedVersion <= DmiStructureVersion.Latest)
            {
                return;
            }

            properties.Add(DmiProperty.BootIntegrityServicesEntryPoint.Checksum, SmbiosStructure.GetPropertyValue(SmbiosProperty.BootIntegrityServicesEntryPoint.Checksum));
            properties.Add(DmiProperty.BootIntegrityServicesEntryPoint.BisEntryPointAddress16, SmbiosStructure.GetPropertyValue(SmbiosProperty.BootIntegrityServicesEntryPoint.BisEntryPointAddress16));
            properties.Add(DmiProperty.BootIntegrityServicesEntryPoint.BisEntryPointAddress32, SmbiosStructure.GetPropertyValue(SmbiosProperty.BootIntegrityServicesEntryPoint.BisEntryPointAddress32));
        }
        /// <inheritdoc/>
        /// <summary>
        /// Populates the property collection for this structure.
        /// </summary>
        /// <param name="properties">Collection of properties of this structure.</param>
        protected override void PopulateProperties(DmiClassPropertiesTable properties)
        {
            object referenceHandle = SmbiosStructure.GetPropertyValue(SmbiosProperty.ProcessorAdditionalInformation.ReferencedHandle);

            if (referenceHandle != null)
            {
                properties.Add(DmiProperty.ProcessorAdditionalInformation.ReferencedHandle, referenceHandle);
            }

            properties.Add(DmiProperty.ProcessorAdditionalInformation.ProcessorSpecificBlock, SmbiosStructure.GetPropertyValue(SmbiosProperty.ProcessorAdditionalInformation.ProcessorSpecificBlock));
        }
        /// <inheritdoc/>
        /// <summary>
        /// Populates the property collection for this structure.
        /// </summary>
        /// <param name="properties">Collection of properties of this structure.</param>
        protected override void PopulateProperties(DmiClassPropertiesTable properties)
        {
            if (ImplementedVersion < DmiStructureVersion.Latest)
            {
                return;
            }

            properties.Add(DmiProperty.OutOfBandRemote.Manufacturer, SmbiosStructure.GetPropertyValue(SmbiosProperty.OutOfBandRemote.Manufacturer));
            properties.Add(DmiProperty.OutOfBandRemote.Connections.OutBoundConnection, SmbiosStructure.GetPropertyValue(SmbiosProperty.OutOfBandRemote.Connections.OutBoundConnection));
            properties.Add(DmiProperty.OutOfBandRemote.Connections.InBoundConnection, SmbiosStructure.GetPropertyValue(SmbiosProperty.OutOfBandRemote.Connections.InBoundConnection));
        }
        /// <inheritdoc/>
        /// <summary>
        /// Populates the property collection for this structure.
        /// </summary>
        /// <param name="properties">Collection of properties of this structure.</param>
        protected override void PopulateProperties(DmiClassPropertiesTable properties)
        {
            if (ImplementedVersion < DmiStructureVersion.v20)
            {
                return;
            }

            properties.Add(DmiProperty.BiosLanguage.InstallableLanguages, SmbiosStructure.GetPropertyValue(SmbiosProperty.BiosLanguage.InstallableLanguages));
            properties.Add(DmiProperty.BiosLanguage.IsCurrentAbbreviated, SmbiosStructure.GetPropertyValue(SmbiosProperty.BiosLanguage.IsCurrentAbbreviated));
            properties.Add(DmiProperty.BiosLanguage.Current, SmbiosStructure.GetPropertyValue(SmbiosProperty.BiosLanguage.Current));
        }
示例#16
0
        /// <inheritdoc/>
        /// <summary>
        /// Populates the property collection for this structure.
        /// </summary>
        /// <param name="properties">Collection of properties of this structure.</param>
        protected override void PopulateProperties(DmiClassPropertiesTable properties)
        {
            if (ImplementedVersion < DmiStructureVersion.Latest)
            {
                return;
            }

            properties.Add(DmiProperty.ManagementDevice.Description, SmbiosStructure.GetPropertyValue(SmbiosProperty.ManagementDevice.Description));
            properties.Add(DmiProperty.ManagementDevice.Type, SmbiosStructure.GetPropertyValue(SmbiosProperty.ManagementDevice.Type));
            properties.Add(DmiProperty.ManagementDevice.Address, SmbiosStructure.GetPropertyValue(SmbiosProperty.ManagementDevice.Address));
            properties.Add(DmiProperty.ManagementDevice.AddressType, SmbiosStructure.GetPropertyValue(SmbiosProperty.ManagementDevice.AddressType));
        }
        /// <inheritdoc/>
        /// <summary>
        /// Populates the property collection for this structure.
        /// </summary>
        /// <param name="properties">Collection of properties of this structure.</param>
        protected override void PopulateProperties(DmiClassPropertiesTable properties)
        {
            if (ImplementedVersion >= DmiStructureVersion.Latest)
            {
                properties.Add(DmiProperty.VoltageProbe.Description, SmbiosStructure.GetPropertyValue(SmbiosProperty.VoltageProbe.Description));
                properties.Add(DmiProperty.VoltageProbe.LocationAndStatus.Status, SmbiosStructure.GetPropertyValue(SmbiosProperty.VoltageProbe.LocationAndStatus.Status));
                properties.Add(DmiProperty.VoltageProbe.LocationAndStatus.Location, SmbiosStructure.GetPropertyValue(SmbiosProperty.VoltageProbe.LocationAndStatus.Location));

                ushort maximumValue = SmbiosStructure.GetPropertyValue <ushort>(SmbiosProperty.VoltageProbe.MaximumValue);
                if (maximumValue != 0x8000)
                {
                    properties.Add(DmiProperty.VoltageProbe.MaximumValue, maximumValue);
                }

                ushort minimumValue = SmbiosStructure.GetPropertyValue <ushort>(SmbiosProperty.VoltageProbe.MinimumValue);
                if (minimumValue != 0x8000)
                {
                    properties.Add(DmiProperty.VoltageProbe.MinimumValue, minimumValue);
                }

                ushort resolution = SmbiosStructure.GetPropertyValue <ushort>(SmbiosProperty.VoltageProbe.Resolution);
                if (resolution != 0x8000)
                {
                    properties.Add(DmiProperty.VoltageProbe.Resolution, resolution);
                }

                ushort tolerance = SmbiosStructure.GetPropertyValue <ushort>(SmbiosProperty.VoltageProbe.Tolerance);
                if (tolerance != 0x8000)
                {
                    properties.Add(DmiProperty.VoltageProbe.Tolerance, tolerance);
                }

                ushort accuracy = SmbiosStructure.GetPropertyValue <ushort>(SmbiosProperty.VoltageProbe.Accuracy);
                if (accuracy != 0x8000)
                {
                    properties.Add(DmiProperty.VoltageProbe.Accuracy, accuracy);
                }

                properties.Add(DmiProperty.VoltageProbe.OemDefined, SmbiosStructure.GetPropertyValue(SmbiosProperty.VoltageProbe.OemDefined));
            }

            if (SmbiosStructure.StructureInfo.Length < 0x15)
            {
                return;
            }

            ushort nominalValue = SmbiosStructure.GetPropertyValue <ushort>(SmbiosProperty.VoltageProbe.NominalValue);

            if (nominalValue != 0x8000)
            {
                properties.Add(DmiProperty.VoltageProbe.NominalValue, nominalValue);
            }
        }
        /// <inheritdoc/>
        /// <summary>
        /// Populates the property collection for this structure.
        /// </summary>
        /// <param name="properties">Collection of properties of this structure.</param>
        protected override void PopulateProperties(DmiClassPropertiesTable properties)
        {
            if (ImplementedVersion < DmiStructureVersion.Latest)
            {
                return;
            }

            properties.Add(DmiProperty.HardwareSecurity.HardwareSecuritySettings.FrontPanelResetStatus, SmbiosStructure.GetPropertyValue(SmbiosProperty.HardwareSecurity.HardwareSecuritySettings.FrontPanelResetStatus));
            properties.Add(DmiProperty.HardwareSecurity.HardwareSecuritySettings.AdministratorPasswordStatus, SmbiosStructure.GetPropertyValue(SmbiosProperty.HardwareSecurity.HardwareSecuritySettings.AdministratorPasswordStatus));
            properties.Add(DmiProperty.HardwareSecurity.HardwareSecuritySettings.KeyboardPasswordStatus, SmbiosStructure.GetPropertyValue(SmbiosProperty.HardwareSecurity.HardwareSecuritySettings.KeyboardPasswordStatus));
            properties.Add(DmiProperty.HardwareSecurity.HardwareSecuritySettings.PowerOnPasswordStatus, SmbiosStructure.GetPropertyValue(SmbiosProperty.HardwareSecurity.HardwareSecuritySettings.PowerOnPasswordStatus));
        }
示例#19
0
        /// <inheritdoc/>
        /// <summary>
        /// Populates the property collection for this structure.
        /// </summary>
        /// <param name="properties">Collection of properties of this structure.</param>
        protected override void PopulateProperties(DmiClassPropertiesTable properties)
        {
            if (ImplementedVersion < DmiStructureVersion.Latest)
            {
                return;
            }

            properties.Add(DmiProperty.SystemPowerControls.Month, SmbiosStructure.GetPropertyValue(SmbiosProperty.SystemPowerControls.Month));
            properties.Add(DmiProperty.SystemPowerControls.Day, SmbiosStructure.GetPropertyValue(SmbiosProperty.SystemPowerControls.Day));
            properties.Add(DmiProperty.SystemPowerControls.Hour, SmbiosStructure.GetPropertyValue(SmbiosProperty.SystemPowerControls.Hour));
            properties.Add(DmiProperty.SystemPowerControls.Minute, SmbiosStructure.GetPropertyValue(SmbiosProperty.SystemPowerControls.Minute));
            properties.Add(DmiProperty.SystemPowerControls.Second, SmbiosStructure.GetPropertyValue(SmbiosProperty.SystemPowerControls.Second));
        }
示例#20
0
        /// <inheritdoc />
        /// <summary>
        /// Populates the property collection for this structure.
        /// </summary>
        /// <param name="properties">Collection of properties of this structure.</param>
        protected override void PopulateProperties(DmiClassPropertiesTable properties)
        {
            object vendorId = SmbiosStructure.GetPropertyValue(SmbiosProperty.TpmDevice.VendorId);

            if (vendorId != null)
            {
                properties.Add(DmiProperty.TpmDevice.VendorId, vendorId);
            }

            object vendorIdDescription = SmbiosStructure.GetPropertyValue(SmbiosProperty.TpmDevice.VendorIdDescription);

            if (vendorIdDescription != null)
            {
                properties.Add(DmiProperty.TpmDevice.VendorIdDescription, vendorIdDescription);
            }

            object majorSpecVersion = SmbiosStructure.GetPropertyValue(SmbiosProperty.TpmDevice.MajorSpecVersion);

            if (majorSpecVersion != null)
            {
                properties.Add(DmiProperty.TpmDevice.MajorSpecVersion, majorSpecVersion);
            }

            object minorSpecVersion = SmbiosStructure.GetPropertyValue(SmbiosProperty.TpmDevice.MinorSpecVersion);

            if (minorSpecVersion != null)
            {
                properties.Add(DmiProperty.TpmDevice.MinorSpecVersion, minorSpecVersion);
            }

            object firmwareVersion = SmbiosStructure.GetPropertyValue(SmbiosProperty.TpmDevice.FirmwareVersion);

            if (firmwareVersion != null)
            {
                properties.Add(DmiProperty.TpmDevice.FirmwareVersion, firmwareVersion);
            }

            object description = SmbiosStructure.GetPropertyValue(SmbiosProperty.TpmDevice.Description);

            if (description != null)
            {
                properties.Add(DmiProperty.TpmDevice.Description, description);
            }

            object characteristics = SmbiosStructure.GetPropertyValue(SmbiosProperty.TpmDevice.Characteristics);

            if (characteristics != null)
            {
                properties.Add(DmiProperty.TpmDevice.Characteristics, characteristics);
            }

            object oemDefined = SmbiosStructure.GetPropertyValue(SmbiosProperty.TpmDevice.OemDefined);

            if (oemDefined != null)
            {
                properties.Add(DmiProperty.TpmDevice.OemDefined, oemDefined);
            }
        }
        /// <inheritdoc/>
        /// <summary>
        /// Populates the property collection for this structure.
        /// </summary>
        /// <param name="properties">Collection of properties of this structure.</param>
        protected override void PopulateProperties(DmiClassPropertiesTable properties)
        {
            if (ImplementedVersion < DmiStructureVersion.Latest)
            {
                return;
            }

            properties.Add(DmiProperty.MemoryChannel.ChannelType, SmbiosStructure.GetPropertyValue(SmbiosProperty.MemoryChannel.ChannelType));
            properties.Add(DmiProperty.MemoryChannel.MaximunChannelLoad, SmbiosStructure.GetPropertyValue(SmbiosProperty.MemoryChannel.MaximumChannelLoad));

            object devices = SmbiosStructure.GetPropertyValue(SmbiosProperty.MemoryChannel.Devices);

            if (devices != null)
            {
                properties.Add(DmiProperty.MemoryChannel.Devices, new DmiMemoryChannelElementCollection((MemoryChannelElementCollection)devices));
            }
        }
        /// <inheritdoc/>
        /// <summary>
        /// Populates the property collection for this structure.
        /// </summary>
        /// <param name="properties">Collection of properties of this structure.</param>
        protected override void PopulateProperties(DmiClassPropertiesTable properties)
        {
            if (ImplementedVersion < DmiStructureVersion.v21)
            {
                return;
            }

            properties.Add(DmiProperty.PhysicalMemoryArray.Location, SmbiosStructure.GetPropertyValue(SmbiosProperty.PhysicalMemoryArray.Location));
            properties.Add(DmiProperty.PhysicalMemoryArray.Use, SmbiosStructure.GetPropertyValue(SmbiosProperty.PhysicalMemoryArray.Use));
            properties.Add(DmiProperty.PhysicalMemoryArray.MemoryErrorCorrection, SmbiosStructure.GetPropertyValue(SmbiosProperty.PhysicalMemoryArray.MemoryErrorCorrection));
            properties.Add(DmiProperty.PhysicalMemoryArray.MemoryErrorInformationHandle, SmbiosStructure.GetPropertyValue(SmbiosProperty.PhysicalMemoryArray.MemoryErrorInformationHandle));
            properties.Add(DmiProperty.PhysicalMemoryArray.NumberOfMemoryDevices, SmbiosStructure.GetPropertyValue(SmbiosProperty.PhysicalMemoryArray.NumberOfMemoryDevices));

            uint maximumCapacity = SmbiosStructure.GetPropertyValue <uint>(SmbiosProperty.PhysicalMemoryArray.MaximumCapacity);

            if (maximumCapacity != 0x08000000)
            {
                properties.Add(DmiProperty.PhysicalMemoryArray.MaximumCapacity, maximumCapacity);
            }
            else
            {
                if (ImplementedVersion >= DmiStructureVersion.v27)
                {
                    properties.Add(DmiProperty.PhysicalMemoryArray.MaximumCapacity, SmbiosStructure.GetPropertyValue(SmbiosProperty.PhysicalMemoryArray.ExtendedMaximumCapacity));
                }
            }
        }
示例#23
0
        /// <inheritdoc />
        /// <summary>
        /// Populates the property collection for this structure.
        /// </summary>
        /// <param name="properties">Collection of properties of this structure.</param>
        protected override void PopulateProperties(DmiClassPropertiesTable properties)
        {
            object description = SmbiosStructure.GetPropertyValue(SmbiosProperty.Inactive.Description);

            if (description != null)
            {
                properties.Add(DmiProperty.Inactive.Description, description);
            }
        }
示例#24
0
        /// <inheritdoc />
        /// <summary>
        /// Populates the property collection for this structure.
        /// </summary>
        /// <param name="properties">Collection of properties of this structure.</param>
        protected override void PopulateProperties(DmiClassPropertiesTable properties)
        {
            object bootStatus = SmbiosStructure.GetPropertyValue(SmbiosProperty.SystemBoot.BootStatus);

            if (bootStatus != null)
            {
                properties.Add(DmiProperty.SystemBoot.BootStatus, bootStatus);
            }
        }
        /// <inheritdoc/>
        /// <summary>
        /// Populates the property collection for this structure.
        /// </summary>
        /// <param name="properties">Collection of properties of this structure.</param>
        protected override void PopulateProperties(DmiClassPropertiesTable properties)
        {
            if (ImplementedVersion < DmiStructureVersion.Latest)
            {
                return;
            }

            properties.Add(DmiProperty.AdditionalInformation.Entries, new DmiAdditionalInformationEntryCollection((AdditionalInformationEntryCollection)SmbiosStructure.GetPropertyValue(SmbiosProperty.AdditionalInformation.Entries)));
        }
示例#26
0
        /// <inheritdoc />
        /// <summary>
        /// Populates the property collection for this structure.
        /// </summary>
        /// <param name="properties">Collection of properties of this structure.</param>
        protected override void PopulateProperties(DmiClassPropertiesTable properties)
        {
            object values = SmbiosStructure.GetPropertyValue(SmbiosProperty.OemStrings.Values);

            if (values != null)
            {
                properties.Add(DmiProperty.OemStrings.Values, values);
            }
        }
示例#27
0
        /// <inheritdoc />
        /// <summary>
        /// Populates the property collection for this structure.
        /// </summary>
        /// <param name="properties">Collection of properties of this structure.</param>
        protected override void PopulateProperties(DmiClassPropertiesTable properties)
        {
            object systemEventLogs = SmbiosStructure.GetPropertyValue(SmbiosProperty.SystemEventLog.SystemEventLogs);

            if (systemEventLogs != null)
            {
                properties.Add(DmiProperty.SystemEventLog.SystemEventLogs, systemEventLogs);
            }
        }
示例#28
0
        /// <inheritdoc />
        /// <summary>
        /// Populates the property collection for this structure.
        /// </summary>
        /// <param name="properties">Collection of properties of this structure.</param>
        protected override void PopulateProperties(DmiClassPropertiesTable properties)
        {
            object status = SmbiosStructure.GetPropertyValue(SmbiosProperty.EndOfTable.Status);

            if (status != null)
            {
                properties.Add(DmiProperty.EndOfTable.Status, status);
            }
        }
示例#29
0
        /// <inheritdoc />
        /// <summary>
        /// Populates the property collection for this structure.
        /// </summary>
        /// <param name="properties">Collection of properties of this structure.</param>
        protected override void PopulateProperties(DmiClassPropertiesTable properties)
        {
            object values = SmbiosStructure.GetPropertyValue(SmbiosProperty.SystemConfigurationOptions.Values);

            if (values != null)
            {
                properties.Add(DmiProperty.SystemConfigurationOptions.Values, values);
            }
        }
        /// <inheritdoc />
        /// <summary>
        /// Populates the property collection for this structure.
        /// </summary>
        /// <param name="properties">Collection of properties of this structure.</param>
        protected override void PopulateProperties(DmiClassPropertiesTable properties)
        {
            object entries = SmbiosStructure.GetPropertyValue(SmbiosProperty.AdditionalInformation.Entries);

            if (entries != null)
            {
                properties.Add(DmiProperty.AdditionalInformation.Entries, new DmiAdditionalInformationEntryCollection((AdditionalInformationEntryCollection)entries));
            }
        }