CONSOLE_SELECTION_INFO structure

Contains information for a console selection.

Syntax

typedef struct _CONSOLE_SELECTION_INFO {
  DWORD      dwFlags;
  COORD      dwSelectionAnchor;
  SMALL_RECT srSelection;
} CONSOLE_SELECTION_INFO, *PCONSOLE_SELECTION_INFO;

Members

dwFlags
The selection indicator. This member can be one or more of the following values.

Value Meaning
CONSOLE_MOUSE_DOWN 0x0008

Mouse is down

CONSOLE_MOUSE_SELECTION 0x0004

Selecting with the mouse

CONSOLE_NO_SELECTION 0x0000

No selection

CONSOLE_SELECTION_IN_PROGRESS 0x0001

Selection has begun

CONSOLE_SELECTION_NOT_EMPTY 0x0002

Selection rectangle is not empty

dwSelectionAnchor
A COORD structure that specifies the selection anchor, in characters.

srSelection
A SMALL_RECT structure that specifies the selection rectangle.

Requirements

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Wincon.h (include Windows.h)

See also

COORD

GetConsoleSelectionInfo

SMALL_RECT