| |
| COLORREF WINAPI NvtGetDisplayColor( |
| |
HDISPLAY hDisplay, |
|
| |
UINT nColorIndex, |
|
| |
BOOL bForeground |
|
| ); |
The NvtGetDisplayColor function returns the color used by
the virtual display to display text with a specific attribute.
Parameters
- hDisplay
- Handle to the virtual display.
- nColorIndex
- The index into the virtual display color table. It may be one
of the following values.
| Value |
Description |
| NVT_COLOR_NORMAL |
The colors displayed for normal text. These are the default
colors used with the display. |
| NVT_COLOR_REVERSE |
The colors displayed for text with the reverse attribute
set. This is only used when emulation is enabled. |
| NVT_COLOR_BOLD |
The colors displayed for text with the bold attribute set.
This is only used when emulation is enabled. |
| NVT_COLOR_REVERSEBOLD |
The colors displayed for text with the reverse and bold
attributes set. This is only used when emulation is
enabled. |
- bForeground
- A boolean flag which specifies if the color is a foreground
color, used when displaying text, or a background color.
Return Value
If the function succeeds, the return value is the RGB value of the
specified color. If the function fails, it returns zero.
Remarks
The default colors for the display is a black background and white
foreground. Bold characters are displayed on a white background and
blue foreground.
Requirements
Minimum Desktop Platform: Windows 7 Service Pack 1
Minimum Server Platform: Windows Server 2008 R2 Service Pack 1
Header File: cstools12.h
Import Library: csnvtv12.lib
See Also
|
|