The GetAttributes method 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
None.
Return Value
If the method succeeds, the return value the current display
attributes. If the method 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
Minimum Desktop Platform: Windows 7 (Service Pack 1)
Minimum Server Platform: Windows Server 2008 R2 (Service Pack 1)
Header File: cstools10.h
Import Library: csnvtv10.lib
See Also
GetCell,
SetAttributes
|