GetMonitorParams

Declaration: GetMonitorParams(MonIx: integer; var Left, Top, Width, Height: integer): integer;
Retrieves the parameters of a particular monitor specified by the parameter MonIx. The MonIx parameter may assume values between 1 and NumMonitors. The variable parameters Left, Top, Width and Height return the respective parameters (in pixel coordinates). The function returns zero if the returned parameters are valid, otherwise -1 is returned.

Please note that the returned coordinates are coordinates of the virtual screen of multi-monitor configurations.