예제 #1
0
 public void WriteConsoleInput(InputRecord buffer)
 {
     if (!NativeMethods.WriteConsoleInput(_inputHandle, new[] { buffer }, 1, out _))
     {
         HandleError();
     }
 }
예제 #2
0
 public static extern bool ReadConsoleInput(
     IntPtr hConsoleInput,
     out InputRecord lpBuffer,
     int nLength,
     out int lpNumberOfEventsRead);