SMPA Setup Guide
December 2, 2022 Scala, Inc. Page | 75
get_display_adapter_arch()
Retrieves the vendor/architecture of the first video adapter.
Returns:
Name or not available string.
get_hw_serial()
Retrieves hardware serial number from WMI or BIOS info.
Returns:
Serial number string.
Blank string if not found.
get_mac_address(wireless=False)
Retrieves the MAC address of the first network adapter.
Options:
wireless Include adapters described as wireless.
Returns:
Address string w/o delimiters, or not available message.
Note:
This function may be unreliable when there are multiple NICs.
Their order is not guaranteed by the OS, and the addresses are
changeable, could be disabled, etc.
get_manufacturer()
Retrieves the system manufacturer of the local system.
Returns:
Name or not available string.
get_monitor_res()
This function attempts to retrieve the native hardware resolution of
the first monitor returned by Windows. It does this by looking for
a connected monitor and then parsing its EDID information cached in
the registry.
Returns:
Tuple containing, (W, H, Orientation)
None on error.
Note:
If the resolution found is below 1024x768 it will be raised to
that as a minimum fallback.