()
return retval
Get a list of all monitors to further processing.
    Copied from code.activestate.com/recipes/460509-get-the-actual-and-usable-sizes-of-all-the-monitor/
Get a list of all monitors to further processing.
    Copied from code.activestate.com/recipes/460509-get-the-actual-and-usable-sizes-of-all-the-monitor/
Get a list of all monitors to further processing . Copied from code . activestate . com / recipes / 460509 - get - the - actual - and - usable - sizes - of - all - the - monitor /
def _get_monitors():
    """Get a list of all monitors to further processing.
    Copied from code.activestate.com/recipes/460509-get-the-actual-and-usable-sizes-of-all-the-monitor/
    """
    retval = []
    CBFUNC = ctypes.WINFUNCTYPE(ctypes.c_int, ctypes.c_ulong, ctypes.c_ulong,
                                ctypes.POINTER(_RECT), ctypes.c_double)

    def cb(hMonitor, hdcMonitor, lprcMonitor, dwData):
        r = lprcMonitor.contents
        data = [hMonitor]
        data.append(r.dump())
        retval.append(data)
        return 1

    cbfunc = CBFUNC(cb)
    temp = ctypes.windll.user32.EnumDisplayMonitors(0, 0, cbfunc, 0)
  
    return retval
def _get_monitors ( ) : retval = [ ] CBFUNC = ctypes . WINFUNCTYPE ( ctypes . c_int , ctypes . c_ulong , ctypes . c_ulong , ctypes . POINTER ( _RECT ) , ctypes . c_double ) def cb ( hMonitor , hdcMonitor , lprcMonitor , dwData ) : r = lprcMonitor . contents data = [ hMonitor ] data . append ( r . dump ( ) ) retval . append ( data ) return 1 cbfunc = CBFUNC ( cb ) temp = ctypes . windll . user32 . EnumDisplayMonitors ( 0 , 0 , cbfunc , 0 ) return retval