Exemplo n.º 1
0
        public static bool ReadConsoleOutput(
            ref CHAR_INFO[] lpBuffer, COORD BufferSize, COORD BufferCoord, ref SMALL_RECT ReadRegion)
        {
            return(Windows.ReadConsoleOutput((IntPtr)Windows.GetStdHandle((int)StdHandles.STD_OUTPUT_HANDLE), lpBuffer, BufferSize, BufferCoord, ref ReadRegion));

            //unsafe
            //{
            //    fixed (char* ciRef = &lpBuffer[0].WideChar)
            //    {
            //        return Windows.ReadConsoleOutput(
            //            Windows.GetStdHandle((int)StdHandles.STD_OUTPUT_HANDLE),
            //            ciRef,
            //            BufferSize,
            //            BufferCoord,
            //            ref ReadRegion);
            //    }
            //}
        }
Exemplo n.º 2
0
 public static bool WriteConsoleOutput(
     CHAR_INFO[] char_info, COORD dwBufferSize, COORD dwBufferCoord, ref SMALL_RECT lpWriteRegion)
 {
     return(Windows.WriteConsoleOutput((IntPtr)Windows.GetStdHandle((int)StdHandles.STD_OUTPUT_HANDLE), char_info, dwBufferSize, dwBufferCoord, ref lpWriteRegion));
 }
Exemplo n.º 3
0
 public static extern bool SetConsoleCursorPosition(int hConsoleOutput, COORD dwCursorPosition);