Exemplo n.º 1
0
        public static RECT GetClipCursor()
        {
            RectStruct rectStruct = new RectStruct();
            bool       succes     = NativeBase.GetClipCursor(ref rectStruct);

            if (!succes)
            {
                throw new GetClipCursorFailedException();
            }
            return(rectStruct);
        }
Exemplo n.º 2
0
        public static POINT GetCursorPos()
        {
            POINT w32Mouse = new POINT();

            bool succes = NativeBase.GetCursorPos(ref w32Mouse);

            if (!succes)
            {
                throw new GetCursorPosFailedException();
            }
            return(w32Mouse);
        }