MonitorBounds
Delphi
function MonitorBounds (MonitorNumber: LongInt; var Bounds: TRect): Boolean;
C++Builder
bool __fastcall MonitorBounds(System::LongInt MonitorNumber, Winapi::Windows::TRect &Bounds);
C#
public bool MonitorBounds(int MonitorNumber, out int LeftBound, out int TopBound, out int RightBound, out int BottomBound);
VB.NET
Public Function MonitorBounds(MonitorNumber As Integer, ByRef LeftBound As Integer, ByRef TopBound As Integer, ByRef RightBound As Integer, ByRef BottomBound As Integer) As Boolean
C++/Qt
BOOL MonitorBounds (int MonitorNumber, int *LeftBound, int *TopBound, int *RightBound, int *BottomBound);
Returns the bounds of the specified video screen, in pixels: in Bounds (a TRect) in Delphi and C++Builder, in LeftBound, TopBound, RightBound and BottomBound in the other versions. The MonitorNumber parameter is in the 0 .. MonitorsCount - 1 range.
Useful on platforms that have more than one video screen. See the Dual display chapter for more information.