GetCursorInfo method

Syntax

HRESULT GetCursorInfo([out] LONG* hwnd, [out] LONG* x, [out] LONG* y)

//This method returns mouse coordinates on the screen.

Errors

E_INVALIDARG
//an invalid argument is passed to “GetCursorInfo” method.