示例#1
0
 public static extern bool WriteConsoleOutputW(
     ConsoleHandle hConsoleOutput,
     [MarshalAs(UnmanagedType.LPArray), In] CharInfo[,] lpBuffer,
     COORD dwBufferSize,
     COORD dwBufferCoord,
     ref SMALL_RECT lpWriteRegion
     );
示例#2
0
 public static extern bool WriteConsoleOutputCharacterW(
     ConsoleHandle hConsoleOutput,
     char[] lpCharacter,
     int nLength,
     COORD dwWriteCoord,
     out int lpumberOfCharsWritten
     );
示例#3
0
 public static extern bool FillConsoleOutputAttribute(
     ConsoleHandle hConsoleOutput,
     CharAttribute wAttribute,
     int nLength,
     COORD dwWriteCoord,
     out uint lpNumberOfAttrsWritten
     );
示例#4
0
 public static extern bool FillConsoleOutputCharacter(
     ConsoleHandle hConsoleOutput,
     char cCharacter,
     int nLength,
     COORD dwWriteCoord,
     out uint lpNumberOfCharsWritten
     );
示例#5
0
 public static extern bool ReadConsoleOutput(
     ConsoleHandle hConsoleOutput,
     [Out] CharInfo[,] lpBuffer,
     COORD dwBufferSize,
     COORD dwBufferCoord,
     ref SMALL_RECT lpReadRegion
     );
示例#6
0
 public static extern bool ReadConsoleOutputCharacter(
     ConsoleHandle hConsoleOutput,
     [Out] char[] lpCharacter,
     uint nLength,
     COORD dwReadCoord,
     out uint lpNumberOfCharsRead
     );
示例#7
0
 public static extern bool ReadConsoleInput(
     ConsoleHandle hConsoleInput,
     [MarshalAs(UnmanagedType.LPArray)]
     [Out] INPUT_RECORD[] lpBuffer,
     uint nLength,
     out uint lpNumberOfEventsRead
     );
示例#8
0
 public static extern bool DuplicateHandle(
     IntPtr hSourceProcessHandle,
     IntPtr hSourceHandle,
     IntPtr hTargetProcessHandle,
     out ConsoleHandle lpTargetHandle,
     short dwDesiredAccess,
     bool bInheritHandle,
     DuplicateOptions dwOptions
     );
示例#9
0
 public static extern bool SetCurrentConsoleFontEx(
     ConsoleHandle ConsoleOutput,
     bool MaximumWindow,
     ref CONSOLE_FONT_INFO_EX ConsoleCurrentFontEx
     );
示例#10
0
 public static extern bool SetConsoleMode(ConsoleHandle hConsoleHandle, ConsoleModes dwMode);
示例#11
0
 public static extern COORD GetLargestConsoleWindowSize(
     ConsoleHandle hConsoleOutput
     );
示例#12
0
 public static extern bool GetConsoleCursorInfo(
     ConsoleHandle hConsoleOutput,
     out CONSOLE_CURSOR_INFO lpConsoleCursorInfo
     );
示例#13
0
 public static extern bool SetConsoleCursorInfo(
     ConsoleHandle hConsoleOutput,
     [In] ref CONSOLE_CURSOR_INFO lpConsoleCursorInfo
     );
示例#14
0
 public static extern bool SetConsoleScreenBufferInfoEx(
     ConsoleHandle hConsoleOutput,
     ref CONSOLE_SCREEN_BUFFER_INFO_EX ConsoleScreenBufferInfo
     );
示例#15
0
 public static extern bool SetConsoleScreenBufferSize(
     ConsoleHandle hConsoleOutput,
     COORD dwSize
     );
示例#16
0
 public extern static bool GetCurrentConsoleFont(
     ConsoleHandle hConsoleOutput,
     bool bMaximumWindow,
     out CONSOLE_FONT_INFO lpConsoleCurrentFont
     );
示例#17
0
 public static extern bool ReadConsoleInput(
     ConsoleHandle hConsoleInput,
     ref INPUT_RECORD lpBuffer,
     uint nLength,
     ref uint lpNumberOfEventsRead
     );
示例#18
0
 public static extern bool GetConsoleMode(ConsoleHandle hConsoleHandle, ref ConsoleModes lpMode);
示例#19
0
 public extern static COORD GetConsoleFontSize(
     ConsoleHandle hConsoleOutput,
     uint nFont
     );
示例#20
0
 public static extern bool GetConsoleScreenBufferInfo(
     ConsoleHandle hConsoleOutput,
     out CONSOLE_SCREEN_BUFFER_INFO ConsoleScreenBufferInfo
     );
示例#21
0
 public static extern bool SetConsoleActiveScreenBuffer(ConsoleHandle hConsoleOutput);
示例#22
0
 public static extern bool SetConsoleWindowInfo(
     ConsoleHandle hConsoleOutput,
     bool bAbsolute,
     ref SMALL_RECT lpConsoleWindow
     );