Syntax
C++
FUNCTION MnApiBacklight_GetBrightness : DWORD
VAR_INPUT
hDevice : DWORD;
pdwBrightness : POINTER_TO_DWORD;
END_VAR
Parameters
|
Parameter: |
Beschreibung |
|---|---|
|
hDevice [in] |
Variable that contains the display handle. |
|
pdwBrightness [out] |
Pointer to the variable containing the illuminance (0%..100%). |
Return Values
|
Return Values |
Description |
|---|---|
|
> 0 |
Function was executed successfully. |
|
0 |
An error has occurred |
Example
C++
hDisplayDevice := MnApiBacklight_Open(0);
MnApiBacklight_GetBrightness(hDisplayDevice, ADR(dwBrightness));
MnApiBacklight_Close(hDisplayDevice);
Requirements
Remarks