public static RECT GetClipCursor() { RectStruct rectStruct = new RectStruct(); bool succes = NativeBase.GetClipCursor(ref rectStruct); if (!succes) { throw new GetClipCursorFailedException(); } return(rectStruct); }
public static POINT GetCursorPos() { POINT w32Mouse = new POINT(); bool succes = NativeBase.GetCursorPos(ref w32Mouse); if (!succes) { throw new GetCursorPosFailedException(); } return(w32Mouse); }