Exemplo n.º 1
0
        public static unsafe extern int GetLastError(); //DWORD is int or uint? 0-0x4000 are used

        //Additional functions and converters-----------------------------------------------------------------

        public static unsafe bool SetCursor(IntPtr hConsoleOutput, bool visible)
        {
            CURSOR_INFO inf = new CURSOR_INFO();

            inf.dwSize.x = 0;
            inf.dwSize.y = 1;
            inf.bVisible = visible;
            IntPtr infptr = new IntPtr(&inf);

            return(SetConsoleCursorInfo(hConsoleOutput, infptr));
        }
Exemplo n.º 2
0
 public static extern bool SetConsoleCursorInfo(IntPtr Handle, ref CURSOR_INFO info);
Exemplo n.º 3
0
 public static extern bool SetConsoleCursorInfo(IntPtr Handle, ref CURSOR_INFO info);