The source project of this merge request has been removed.
Optimize intel smbus detection
Change Content
- Query conditions of Win32_PnPSignedDriver.
- Determination rules for the manufacturer of the SMBus controller.
Reasons for Change
- The
Descriptionof SMBus controller may be empty (motherboard: ASUS TX GAMING BTF2.0 WiFi). But itsDeviceNamemay contain "SMBus". - The
Manufacturerof SMBus controller may be empty as well. Analyzing existing code, one boards seems to have a couple of SMBus from different manufacturer. To ensure SMBus controllers with empty Manufacturer won't be missed and to minimize the risk of misidentification, I added such a case:
IF
the `Manufacturer` of SMBus controller is empty
AND the `Manufacturer` of processor is Intel
AND there is only one SMBus controller queried from WMI
THEN
the `Manufacturer` of the unique SMBus controller should be Intel
END
Testing
The program has been tested on my computer and functions as expected.