Function:
GetCursorPos(lpPoint)

 

Description:
Retrieves the position of the cursor relative to the screen.

 

Parameters:
lpPoint: Points to a POINT structure that receives the screen coordinates of the cursor.

 

Returns:
If the function succeeds, the return value is nonzero. If the function fails, the return value is zero.

 

Example:
Click on the calc icon to view a sample of the GetCursorPos function.