Example #1
0
 internal static extern bool ReadConsole(IntPtr consoleInput, StringBuilder buffer, uint numberOfCharsToRead, out uint numberOfCharsRead, ref Native.CONSOLE_READCONSOLE_CONTROL controlData);
Example #2
0
 public static extern int GetWindowLong(IntPtr hWnd, Native.GWL nIndex);
Example #3
0
 internal static extern bool GetWindowRect(IntPtr hWnd, out Native.RECTA lpRect);
Example #4
0
 internal static extern bool SetConsoleWindowInfo(IntPtr consoleHandle, bool absolute, ref Native.SMALL_RECT windowInfo);
Example #5
0
 internal static extern bool WriteConsoleOutput(IntPtr consoleOutput, Native.CHAR_INFO[] buffer, Native.Coord bufferSize, Native.Coord bufferCoord, ref Native.SMALL_RECT writeRegion);
Example #6
0
 internal static extern bool SetConsoleCtrlHandler(Native.BreakHandler handlerRoutine, bool add);
Example #7
0
 internal static extern bool SetConsoleCursorPosition(IntPtr consoleOutput, Native.Coord cursorPosition);
Example #8
0
 internal static extern bool FillConsoleOutputAttribute(IntPtr consoleOutput, ushort attribute, uint length, Native.Coord writeCoord, out uint numberOfAttrsWritten);
Example #9
0
 internal static extern bool FillConsoleOutputCharacter(IntPtr consoleOutput, char character, uint length, Native.Coord writeCoord, out uint numberOfCharsWritten);
Example #10
0
 public static extern int SetWindowLong(IntPtr hWnd, Native.GWL nIndex, Native.WS_EX dwNewLong);
Example #11
0
 internal static extern int EnumChildWindows(int hWndParent, Native.EnumChildCallback lpEnumFunc, int lParam);
Example #12
0
 public static extern bool SetLayeredWindowAttributes(IntPtr hWnd, int crKey, byte alpha, Native.LWA dwFlags);
Example #13
0
 public static extern int SetCurrentConsoleFontEx(uint hConsole, uint bMaximumWindow, ref Native.CONSOLE_FONT_INFOEX cfi);
Example #14
0
 public static extern int SetConsoleScreenBufferInfoEx(uint hConsole, ref Native.CONSOLE_SCREEN_BUFFER_INFOEX csbi);
Example #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);
Example #16
0
 internal static extern bool GetClientRect(IntPtr hWnd, out Native.RECTA lpRect);
Example #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);
Example #18
0
 internal static extern bool GetConsoleScreenBufferInfo(IntPtr consoleHandle, out Native.CONSOLE_SCREEN_BUFFER_INFO consoleScreenBufferInfo);
Example #19
0
 internal static extern bool SetConsoleCursorInfo(IntPtr consoleOutput, ref Native.CONSOLE_CURSOR_INFO consoleCursorInfo);
Example #20
0
 internal static extern bool GetCurrentConsoleFont(IntPtr hConsoleOutput, bool bMaximumWindow, out Native.CONSOLE_FONT_INFO lpConsoleCurrentFont);
Example #21
0
 internal static extern bool SetConsoleScreenBufferSize(IntPtr consoleOutput, Native.Coord size);
Example #22
0
 internal static extern bool GetTextMetrics(IntPtr hdc, out Native.TEXTMETRIC tm);
Example #23
0
 internal static extern bool TranslateCharsetInfo(IntPtr src, out Native.CHARSETINFO Cs, uint options);
Example #24
0
 internal static extern bool GetWindowInfo(IntPtr hwnd, out Native.WINDOWINFO wi);
Example #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;
 }
Example #26
0
 public static extern bool GetConsoleSelectionInfo(ref Native.CONSOLE_SELECTION_INFO lpConsoleSelectionInfo);