示例#1
0
 internal static extern bool ReadConsole(IntPtr consoleInput, StringBuilder buffer, uint numberOfCharsToRead, out uint numberOfCharsRead, ref Native.CONSOLE_READCONSOLE_CONTROL controlData);
示例#2
0
 public static extern int GetWindowLong(IntPtr hWnd, Native.GWL nIndex);
示例#3
0
 internal static extern bool GetWindowRect(IntPtr hWnd, out Native.RECTA lpRect);
示例#4
0
 internal static extern bool SetConsoleWindowInfo(IntPtr consoleHandle, bool absolute, ref Native.SMALL_RECT windowInfo);
示例#5
0
 internal static extern bool WriteConsoleOutput(IntPtr consoleOutput, Native.CHAR_INFO[] buffer, Native.Coord bufferSize, Native.Coord bufferCoord, ref Native.SMALL_RECT writeRegion);
示例#6
0
 internal static extern bool SetConsoleCtrlHandler(Native.BreakHandler handlerRoutine, bool add);
示例#7
0
 internal static extern bool SetConsoleCursorPosition(IntPtr consoleOutput, Native.Coord cursorPosition);
示例#8
0
 internal static extern bool FillConsoleOutputAttribute(IntPtr consoleOutput, ushort attribute, uint length, Native.Coord writeCoord, out uint numberOfAttrsWritten);
示例#9
0
 internal static extern bool FillConsoleOutputCharacter(IntPtr consoleOutput, char character, uint length, Native.Coord writeCoord, out uint numberOfCharsWritten);
示例#10
0
 public static extern int SetWindowLong(IntPtr hWnd, Native.GWL nIndex, Native.WS_EX dwNewLong);
示例#11
0
 internal static extern int EnumChildWindows(int hWndParent, Native.EnumChildCallback lpEnumFunc, int lParam);
示例#12
0
 public static extern bool SetLayeredWindowAttributes(IntPtr hWnd, int crKey, byte alpha, Native.LWA dwFlags);
示例#13
0
 public static extern int SetCurrentConsoleFontEx(uint hConsole, uint bMaximumWindow, ref Native.CONSOLE_FONT_INFOEX cfi);
示例#14
0
 public static extern int SetConsoleScreenBufferInfoEx(uint hConsole, ref Native.CONSOLE_SCREEN_BUFFER_INFOEX csbi);
示例#15
0
 internal static extern bool ReadConsoleOutput(IntPtr consoleOutput, [Out] Native.CHAR_INFO[] buffer, Native.Coord bufferSize, Native.Coord bufferCoord, ref Native.SMALL_RECT readRegion);
示例#16
0
 internal static extern bool GetClientRect(IntPtr hWnd, out Native.RECTA lpRect);
示例#17
0
 internal static extern bool ScrollConsoleScreenBuffer(IntPtr consoleOutput, ref Native.SMALL_RECT scrollRectangle, ref Native.SMALL_RECT clipRectangle, Native.Coord destinationOrigin, ref Native.CHAR_INFO fill);
示例#18
0
 internal static extern bool GetConsoleScreenBufferInfo(IntPtr consoleHandle, out Native.CONSOLE_SCREEN_BUFFER_INFO consoleScreenBufferInfo);
示例#19
0
 internal static extern bool SetConsoleCursorInfo(IntPtr consoleOutput, ref Native.CONSOLE_CURSOR_INFO consoleCursorInfo);
示例#20
0
 internal static extern bool GetCurrentConsoleFont(IntPtr hConsoleOutput, bool bMaximumWindow, out Native.CONSOLE_FONT_INFO lpConsoleCurrentFont);
示例#21
0
 internal static extern bool SetConsoleScreenBufferSize(IntPtr consoleOutput, Native.Coord size);
示例#22
0
 internal static extern bool GetTextMetrics(IntPtr hdc, out Native.TEXTMETRIC tm);
示例#23
0
 internal static extern bool TranslateCharsetInfo(IntPtr src, out Native.CHARSETINFO Cs, uint options);
示例#24
0
 internal static extern bool GetWindowInfo(IntPtr hwnd, out Native.WINDOWINFO wi);
示例#25
0
 public KeyInfo(int virtualKeyCode, char ch, Native.ControlKeyStates controlKeyState, bool keyDown)
 {
     this = new Native.KeyInfo();
     this.VirtualKeyCode = virtualKeyCode;
     this.Character = ch;
     this.ControlKeyState = controlKeyState;
     this.KeyDown = keyDown;
 }
示例#26
0
 public static extern bool GetConsoleSelectionInfo(ref Native.CONSOLE_SELECTION_INFO lpConsoleSelectionInfo);