Suspend Event
PLBCMP GUI Only, 9.4
The Suspend event is generated from the Windows WM_POWERBROADCAST event. When the WM_POWERBROADCAST event with a suspend or resume state is detected, a PLB 'Suspend' user event is generated if it has been registered for a WINDOW object.
Note the following:
The Event Result value for the 'Suspend' event is set to one of the following values:
|
Value |
Meaning |
|
0x4 |
System is suspending operation. |
|
0x7 |
Operation resuming after suspension. |
These events are not available from the OS until the Windows resumes operations.
This event helps in situations where a user program wants to detect when a program is restarting from a suspended state. A program may need to reinitialize connections in such situations.
The Suspend event is referenced using an event value of thirty-two (32).
This event is only used and generated when using PLB CE runtime.
See Also: EVENTREGISTER, Object Events, Object IO Instructions, Object Definitions
![]() |