
35
3.16 SysDisablePowerOff
This function disables turning off the power with the Power key. In case where turning off the power
has been set disabled, PBT_APMSUSPEND of WM_POWERBROADCAST will be issued when
the Power key is pressed. In your application, design the application so that this message is retrieved
to precede necessary routine works before turning soft-off on the terminal. See also notes below.
In the Device Emulator, the function does not perform, but stores the preset value as internal
variable. The value stored can be checked with SysGetPowerOff function.
Calling Sequences
[C++]
DWORD SysDisablePowerOff( )
[Visual Basic]
Public Shared Function SysDisablePowerOff() As Int32
[C#]
public static Int32 SysDisablePowerOff()
Parameters
None
Return Values
TRUE : Normal end
FUNCTION_UNSUPPORT : Unsupported error
Notes:
• As this setting is cancelled whenever the power is turned on, set it again as required.
• Opening the battery cover intentionally or accidentally or emergency power OFF forces the
power to be immediately turned off even if this setting has been set effect.
Comentários a estes Manuais