示例#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);