NvtGetDisplayAttributes
UINT NvtGetDisplayAttributes(
HDISPLAY hDisplay  
);

The NvtGetDisplayAttributes function returns the current display attributes which have been set, either explicitly by the client or as the result of an escape sequence parsed by the emulator.

Parameters

hDisplay
Handle to the virtual display.

Return Value

If the function succeeds, the return value the current display attributes. If the function fails, the return value is NVT_ERROR.

The following table lists the valid attributes:

Constant Description
NVT_ATTRIBUTE_NORMAL Normal, default attributes.
NVT_ATTRIBUTE_REVERSE Foreground and background cell colors are reversed.
NVT_ATTRIBUTE_BOLD The character is displayed using a higher intensity color.
NVT_ATTRIBUTE_DIM The character is displayed using a lower intensity color.
NVT_ATTRIBUTE_UNDERLINE The character is displayed with an underline.
NVT_ATTRIBUTE_HIDDEN The character is stored in display memory, but not shown.
NVT_ATTRIBUTE_PROTECT The character is protected and cannot be cleared.

One or more attributes may be combined using a bitwise Or operator. Certain attributes, such as NVT_ATTRIBUTE_BOLD and NVT_ATTRIBUTE_DIM are mutually exclusive.

Requirements

Client: Requires Windows Vista, Windows XP or Windows 2000 Professional.
Server: Requires Windows Server 2008, Windows Server 2003 or Windows 2000 Server.
Header: Include cstools6.h.
Library: Use csnvtav6.lib.

See Also

NvtGetDisplayCell, NvtSetDisplayAttributes


Copyright © 2008 Catalyst Development Corporation. All rights reserved.