Elated, Unctions, Enablepowerbutton – Argox PT-9130 User Manual
Page 28: Keypad related functions

PT-90 Mobile Computer SDK Programming Manual 21
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
. If this action fails, possible returned values are
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