Use the EnumDisplayMonitors () function, passing NULL for the first two arguments. Your callback receives the monitors in numerical order with their virtual arrangement, relative to the main monitor. Negative positions are on the left and top of your main monitor.
source share