PT-9230 Mobile Computer SDK Programming Manual 17
KeyPad Related Functions
EnablePowerButton
To ENABLE or DISABLE the POWER button.
DWORD EnablePowerButton
{
BOOL bOn
}
Parameters
bOn
[in] Flag that indicates whether to ENABLE the POWER button(TRUE) or to DISABLE the POWER
button(FALSE).
Returned Values
If this action succeeds, the returned value is E_FUNC_SUCCEED. If this action fails, possible returned values are
E_FUNC_ERROR, E_FUNC_PAR_ERROR.
Remarks
If the bOn parameter is FALSE, the POWER button will be DISABLED. The POWER button will not work
when been pressed. If the terminal enters suspend mode, the POWER button will work one time only to wake up
the terminal. When the terminal wakes up, the POWER button will be DISABLED again until this function been
called with parameter TRUE to ENABLE the POWER button.
Example
DWORD dwResult;
dwResult = EnablePowerButton(FALSE);
if(dwResult != E_FUNC_SUCCEED)
AfxMessageBox(_T("EnablePowerButton fail"));
Requirements
OS Versions: Windows CE 6.0 or beyond.
Header: sysapiax.h
Link Library: sysapiax.lib
Link DLL: sysapiax.dll
Device: PT90