Suspend

Suspends the device.

If Prefer Hibernation is TRUE, the device will hibernate instead of suspend. (Not supported on CE devices.)

If Force Suspension is TRUE, the device will suspend immediately and other applications will not be allowed to override.

Parameters

Prefer Hibernation

Indicates whether the device will hibernate instead of suspending.

Force Suspension

Indicates whether other applications can override the suspension.

Format

Suspend (Prefer Hibernation, Force Suspension)

Return Value

Returns a Boolean. TRUE if the device was suspended; returns FALSE otherwise.

Example

Script(Suspend_Test)
Boolean(bHibernate)
Boolean(bForce)
Boolean(bResult)
Activate(From_Menu)
bHibernate = Ask_Yes_No("Hibernate instead of Suspend?", "Suspend_Test", FALSE)
bForce = Ask_Yes_No("Force Suspend?", "Suspend_Test", FALSE)
bResult = Suspend(bHibernate, bForce)
Return

See Also

Reboot, Get_Time_Since_Reset, Ask_Yes_No, Disconnect, Abort_All, Exit_Application

 


Was this article useful?    

The topic was:

Inaccurate

Incomplete

Not what I expected

Other

Privacy and Legal