NT_CONSOLE_PROPS structure (shlobj_core.h)

Holds an extra data block used by IShellLinkDataList. It holds console properties.

Syntax

typedef struct {
  DATABLOCK_HEADER dbh;
  DATABLOCK_HEADER DUMMYSTRUCTNAME;
  WORD             wFillAttribute;
  WORD             wPopupFillAttribute;
  COORD            dwScreenBufferSize;
  COORD            dwWindowSize;
  COORD            dwWindowOrigin;
  DWORD            nFont;
  DWORD            nInputBufferSize;
  COORD            dwFontSize;
  UINT             uFontFamily;
  UINT             uFontWeight;
  WCHAR            FaceName[LF_FACESIZE];
  UINT             uCursorSize;
  BOOL             bFullScreen;
  BOOL             bQuickEdit;
  BOOL             bInsertMode;
  BOOL             bAutoPosition;
  UINT             uHistoryBufferSize;
  UINT             uNumberOfHistoryBuffers;
  BOOL             bHistoryNoDup;
  COLORREF         ColorTable[16];
} NT_CONSOLE_PROPS, *LPNT_CONSOLE_PROPS;

Members

dbh

Type: DATABLOCK_HEADER

The DATABLOCK_HEADER structure with the NT_CONSOLE_PROPS structure's size and signature. The signature for an NT_CONSOLE_PROPS structure is NT_CONSOLE_PROPS_SIG.

DUMMYSTRUCTNAME

wFillAttribute

Type: WORD

Fill attribute for the console.

wPopupFillAttribute

Type: WORD

Fill attribute for console pop-ups.

dwScreenBufferSize

Type: COORD

A COORD structure with the console's screen buffer size.

dwWindowSize

Type: COORD

A COORD structure with the console's window size.

dwWindowOrigin

Type: COORD

A COORD structure with the console's window origin.

nFont

Type: DWORD

The font.

nInputBufferSize

Type: DWORD

The input buffer size.

dwFontSize

Type: COORD

A COORD structure with the font size.

uFontFamily

Type: UINT

The font family.

uFontWeight

Type: UINT

The font weight.

FaceName[LF_FACESIZE]

Type: WCHAR[LF_FACESIZE]

A character array that contains the font's face name.

uCursorSize

Type: UINT

The cursor size.

bFullScreen

Type: BOOL

A boolean value that is set to TRUE if the console is in full-screen mode, or FALSE otherwise.

bQuickEdit

Type: BOOL

A boolean value that is set to TRUE if the console is in quick-edit mode, or FALSE otherwise.

bInsertMode

Type: BOOL

A boolean value that is set to TRUE if the console is in insert mode, or FALSE otherwise.

bAutoPosition

Type: BOOL

A boolean value that is set to TRUE if the console is in auto-position mode, or FALSE otherwise.

uHistoryBufferSize

Type: UINT

The size of the history buffer.

uNumberOfHistoryBuffers

Type: UINT

The number of history buffers.

bHistoryNoDup

Type: BOOL

A boolean value that is set to TRUE if old duplicate history lists should be discarded, or FALSE otherwise.

ColorTable[16]

Type: COLORREF[16]

An array of COLORREF values with the console's color settings.

Requirements

Requirement Value
Minimum supported client Windows 2000 Professional, Windows XP [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Header shlobj_core.h (include Shlobj.h)