IntControl 69

Syntax:

IntControl (69, p1, p2, 0, 0)

 

Suspends machine by shutting power down.

 

p1  Meaning (NT+)

0 hibernate mode

1 suspend mode

 

p2 Meaning

0 Don't force apps to suspend. The function broadcasts a PBT_APMQUERYSUSPEND event to each application to request permission to suspend operation. 

1 Force apps to suspend. The function broadcasts a PBT_APMSUSPEND event to each application and driver, then immediately suspends operation 

 

This IntControl puts the system into standby mode, if supported by the hardware and device drivers.

Note: This function is not supported when run as a service.