Programming Manual
14
PowerOnLCD
This function turns on or off LCD power.
DWORD PowerOnLCD
{
BOOL
bOn
}
Parameters
bOn
[in] Flag that indicates whether turn on LCD power(TRUE) or turn off LCD power(FALSE).
Return Values
If function succeeds, the return value is
E_FUNC_SUCCEED
. If function fails, possible return value are
E_FUNC_ERROR
,
E_FUNC_PAR_ERROR
.
Remarks
After calling this function with bOn is FALSE, terminal will only turn off LCD power. It means that terminal still
works. You should call this function to turn on LCD power or reset terminal.
Example
DWORD dwResult;
dwResult = PowerOnLCD(FALSE); //power off LCD
if(dwResult != E_FUNC_SUCCEED)
AfxMessageBox(_T("PowerOnLCD fail"));
Sleep(3000);
dwResult = PowerOnLCD(TRUE); //power on LCD
if(dwResult != E_FUNC_SUCCEED)
AfxMessageBox(_T("PowerOnLCD fail"));
Requirements
OS Versions:
Windows CE 5.0 and later.
Header:
sysapiax.h
Link Library:
sysapiax.lib
Link DLL:
sysapiax.dll
Device:
PT61