@msdn=http://search.microsoft.com/search/results.aspx?qu=$$$ @pinvoke=http://pinvoke.net/$$$.htm Summary: The GetConsoleMode API !!!!C# Signature: [DllImport("kernel32.dll", SetLastError = true)] static extern bool GetConsoleMode(IntPtr hConsoleHandle, out uint lpMode); !!!!User-Defined Types (C#): [Flags] private enum ConsoleModes : uint { ENABLE_PROCESSED_INPUT = 0x0001, ENABLE_LINE_INPUT = 0x0002, ENABLE_ECHO_INPUT = 0x0004, ENABLE_WINDOW_INPUT = 0x0008, ENABLE_MOUSE_INPUT = 0x0010, ENABLE_INSERT_MODE = 0x0020, ENABLE_QUICK_EDIT_MODE = 0x0040, ENABLE_EXTENDED_FLAGS = 0x0080, ENABLE_AUTO_POSITION = 0x0100, ENABLE_VIRTUAL_TERMINAL_INPUT = 0x0200, ENABLE_PROCESSED_OUTPUT = 0x0001, ENABLE_WRAP_AT_EOL_OUTPUT = 0x0002, ENABLE_VIRTUAL_TERMINAL_PROCESSING = 0x0004, DISABLE_NEWLINE_AUTO_RETURN = 0x0008, ENABLE_LVB_GRID_WORLDWIDE = 0x0010 } or [Flags] private enum ConsoleInputModes : uint { ENABLE_PROCESSED_INPUT = 0x0001, ENABLE_LINE_INPUT = 0x0002, ENABLE_ECHO_INPUT = 0x0004, ENABLE_WINDOW_INPUT = 0x0008, ENABLE_MOUSE_INPUT = 0x0010, ENABLE_INSERT_MODE = 0x0020, ENABLE_QUICK_EDIT_MODE = 0x0040, ENABLE_EXTENDED_FLAGS = 0x0080, ENABLE_AUTO_POSITION = 0x0100, ENABLE_VIRTUAL_TERMINAL_INPUT = 0x0200 } [Flags] private enum ConsoleOutputModes : uint { ENABLE_PROCESSED_OUTPUT = 0x0001, ENABLE_WRAP_AT_EOL_OUTPUT = 0x0002, ENABLE_VIRTUAL_TERMINAL_PROCESSING = 0x0004, DISABLE_NEWLINE_AUTO_RETURN = 0x0008, ENABLE_LVB_GRID_WORLDWIDE = 0x0010 } !!!!User-Defined Types (VB): <Flags()> Public Enum ConsoleModes ' 55 /* Console Mode flags */ ENABLE_PROCESSED_INPUT = &H1 ENABLE_LINE_INPUT = &H2 ENABLE_ECHO_INPUT = &H4 ENABLE_WINDOW_INPUT = &H8 ENABLE_MOUSE_INPUT = &H10 ENABLE_INSERT_MODE = &H20 ENABLE_QUICK_EDIT_MODE = &H40 ENABLE_EXTENDED_FLAGS = &H80 ENABLE_AUTO_POSITION = &H100 ENABLE_PROCESSED_OUTPUT = &H1 ENABLE_WRAP_AT_EOL_OUTPUT = &H2 End Enum !!!!Notes: None. !!!!Tips & Tricks: Please add some! !!!!Sample Code: Please add some! !!!!Alternative Managed API: Do you know one? Please contribute it! Documentation: GetConsoleMode@msdn on MSDN
Edit kernel32.getconso...
You do not have permission to change this page. If you feel this is in error, please send feedback with the contact link on the main page.