# GetMonitorFromPoint

int GetMonitorFromPoint (Point point, int *monitorID);

## Purpose

Returns the ID of the monitor that is nearest to the specified point.

## Parameters

Input
Name | Type | Description
point | Point | The specified point. The Point structure is defined as follows: typedef struct { int x; int y; } Point; You can create a Point without declaring a variable by using the following function: Point MakePoint (int x, int y); Example GetMonitorFromPoint (MakePoint (20, 30), &monitorID);
Output
Name | Type | Description
monitorID | integer (passed by reference) | The ID of the monitor that contains or is nearest to the specified point.

## Return Value

Name | Type | Description
status | integer | Return value indicating whether the function was successful. A negative number indicates that an error occurred.
Code | Error Message String
xx | Success