[DllImport("kernel32.dll", SetLastError = true)]
static extern bool GetConsoleSelectionInfo(
CONSOLE_SELECTION_INFO ConsoleSelectionInfo
);
Declare Function GetConsoleSelectionInfo Lib "kernel32.dll" (TODO) As TODO
[StructLayout(LayoutKind.Sequential)]
public struct CONSOLE_SELECTION_INFO
{
uint Flags;
COORD SelectionAnchor;
SMALL_RECT Selection;
// Flags values:
const uint CONSOLE_MOUSE_DOWN = 0x0008; // Mouse is down
const uint CONSOLE_MOUSE_SELECTION = 0x0004; //Selecting with the mouse
const uint CONSOLE_NO_SELECTION = 0x0000; //No selection
const uint CONSOLE_SELECTION_IN_PROGRESS = 0x0001; //Selection has begun
const uint CONSOLE_SELECTION_NOT_EMPTY = 0x0002; //Selection rectangle is not empty
}
Do you know one? Please contribute it!
// Untested, added during 1-pass copy & paste of windows console fuctions
Please add some!
Please add some!