()
return retval
Find the active and working area of each monitor.
    Copied from code.activestate.com/recipes/460509-get-the-actual-and-usable-sizes-of-all-the-monitor/
Find the active and working area of each monitor.
    Copied from code.activestate.com/recipes/460509-get-the-actual-and-usable-sizes-of-all-the-monitor/
Find the active and working area of each monitor . Copied from code . activestate . com / recipes / 460509 - get - the - actual - and - usable - sizes - of - all - the - monitor /
def _monitor_areas():
    """Find the active and working area of each monitor.
    Copied from code.activestate.com/recipes/460509-get-the-actual-and-usable-sizes-of-all-the-monitor/
    """
    retval = []
    monitors = _get_monitors()
    for hMonitor, extents in monitors:
        data = [hMonitor]
        mi = _MONITORINFO()
        mi.cbSize = ctypes.sizeof(_MONITORINFO)
        mi.rcMonitor = _RECT()
        mi.rcWork = _RECT()
        res = ctypes.windll.user32.GetMonitorInfoA(hMonitor, ctypes.byref(mi))
        data.append(mi.rcMonitor.dump())
        data.append(mi.rcWork.dump())
        retval.append(data)
    return retval
def _monitor_areas ( ) : retval = [ ] monitors = _get_monitors ( ) for hMonitor , extents in monitors : data = [ hMonitor ] mi = _MONITORINFO ( ) mi . cbSize = ctypes . sizeof ( _MONITORINFO ) mi . rcMonitor = _RECT ( ) mi . rcWork = _RECT ( ) res = ctypes . windll . user32 . GetMonitorInfoA ( hMonitor , ctypes . byref ( mi ) ) data . append ( mi . rcMonitor . dump ( ) ) data . append ( mi . rcWork . dump ( ) ) retval . append ( data ) return retval