Console Selection

An accessibility application needs information about the user's selection in the console. To retrieve the current console selection, call the GetConsoleSelectionInfo function. The CONSOLE_SELECTION_INFO structure contains information about the selection, such as the anchor, coordinates, and status.