Click to Rate and Give Feedback
MSDN
MSDN Library
System Services
Console Reference
Console Functions
 SetConsoleDisplayMode Function

  Switch on low bandwidth view
SetConsoleDisplayMode Function

Sets the display mode of the specified console screen buffer.

Syntax

C++
BOOL WINAPI SetConsoleDisplayMode(
  __in       HANDLE hConsoleOutput,
  __in       DWORD dwFlags,
  __out_opt  PCOORD lpNewScreenBufferDimensions
);

Parameters

hConsoleOutput [in]

A handle to the console screen buffer.

dwFlags [in]

The display mode of the console. This parameter can be one or more of the following values.

ValueMeaning
CONSOLE_FULLSCREEN_MODE
1

Text is displayed in full-screen mode.

CONSOLE_WINDOWED_MODE
2

Text is displayed in a console window.

 

lpNewScreenBufferDimensions [out, optional]

A pointer to a COORD structure that receives the new dimensions of the screen buffer, in characters.

Return Value

If the function succeeds, the return value is nonzero.

If the function fails, the return value is zero. To get extended error information, call GetLastError.

Requirements

Minimum supported clientWindows XP
Minimum supported serverWindows Server 2003
HeaderWincon.h (include Windows.h)
LibraryKernel32.lib
DLLKernel32.dll

See Also

Console Functions
Console Modes
GetConsoleDisplayMode

Send comments about this topic to Microsoft

Build date: 7/2/2009

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker