TwclPowerEventsMonitor.Open Method

Opens the power state changes monitor and starts listening for events.

Namespace: wclPowerEvents
public
 function Open: Integer;

Return Value

Type: Integer

If the function succeed the return value is wclErrors.WCL_E_SUCCESS. Otherwise the method returns one of the WCL error codes.