34 | DGetBrightness
DGetBrightness
(Available for flat panel only)
Purpose Use
DGetBrightness
to return the current brightness
setting of the flat panel.
Syntax
DWORD DGetBrightness (hdc, nDisplay, pBrightness)
Return value
DWORD –
zero (0) if function completed successfully;
otherwise, operating system error code.
Example This example returns the brightness of a panel.
#include <mdpcint.h>
{
HDC
hdc;
UWORD
nDisplay = (UWORD) Win2000DisplayNum |
WIN2K_DISPLAY_NUMBER;
DWORD
dwRetCode;
DWORD
dwBrightness;
dwRetCode = DGetBrightness (NULL, nDisplay,
&dwBrightness);
return dwRetCode;
}
See also
DSetBrightness
Parameter
Type
Name
Description
HDC
hdc
NULL
or
hdc
of target device.
UWORD
nDisplay
Target display.
DWORD FAR *
pBright-
ness
Pointer to
DWORD.
It is filled
with the current brightness
setting of the flat panel (on
successful return). Current
values are 0 (zero) to 255, with
0 (zero) being full brightness.
Содержание Dome DX/PCI
Страница 6: ......