using System.Runtime.InteropServices;
[System.Runtime.InteropServices.DllImport( "user32.dll" , EntryPoint="GetCursorPos" )]
public extern static int GetCursorPos( ref POINTAPI lpPoint );
public struct POINTAPI
{
public int x;
public int y;
}
POINTAPI _POINTAPI = new POINTAPI();
GetCursorPos ( ref _POINTAPI );
[System.Runtime.InteropServices.DllImport( "user32.dll" , EntryPoint="GetCursorPos" )]
public extern static int GetCursorPos( ref POINTAPI lpPoint );
public struct POINTAPI
{
public int x;
public int y;
}
POINTAPI _POINTAPI = new POINTAPI();
GetCursorPos ( ref _POINTAPI );