NvtSetDisplayAttributes Function  
 
UINT WINAPI NvtSetDisplayAttributes(
  HDISPLAY hDisplay,  
  UINT nAttributes  
);

The NvtSetDisplayAttributes function sets the current display attributes.

Parameters

hDisplay
Handle to the virtual display.
nAttributes
An unsigned integer value which specifies the new display attributes. This may be one or more of the following values:
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.

Return Value

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

Requirements

Client: Requires Windows 7, Windows Vista or Windows XP.
Server: Requires Windows Server 2008 or Windows Server 2003.
Header: Include cstools7.h.
Library: Use csnvtav7.lib.

See Also

NvtGetDisplayAttributes, NvtGetDisplayCell