wstring FormatHardwareID()

in library/src/WmiQuery.cpp [41:53]


	wstring FormatHardwareID(const DXCoreHardwareID& dxHardwareID)
	{
		// Build a PCI hardware identifier string as per:
		// <https://docs.microsoft.com/en-us/windows-hardware/drivers/install/identifiers-for-pci-devices>
		// and insert a trailing wildcard for the device instance
		return fmt::format(
			L"PCI\\\\VEN_{:0>4X}&DEV_{:0>4X}&SUBSYS_{:0>8X}&REV_{:0>2X}%",
			dxHardwareID.vendorID,
			dxHardwareID.deviceID,
			dxHardwareID.subSysID,
			dxHardwareID.revision
		);
	}