if not windll.user32.EnumDisplayMonitors(None, None, _MONITORENUMPROC(
    callback), None):
    raise WinError('EnumDisplayMonitors failed')
Sending DDC/CI commands to monitor on Windows using Python?