TwclPowerStateChangeMessage Class

The Power State Changed message is broadcasted to all subscribers when changes in the power state have been detected. The message ID is WCL_MSG_ID_SYS_POWER_STATE_CHANGED.

Namespace: wclMessaging
TObject
  wclMessaging.TwclMessage
    wclMessaging.TwclSystemCategoryMessage
      wclMessaging.TwclPowerStateChangeMessage
type
 TwclPowerStateChangeMessage = class(TwclSystemCategoryMessage)
 end;

The TwclPowerStateChangeMessage type exposes the following members.

Show:
 NameDescription
Create(TwclPowerState)

Creates new Power State Changed message object.

Top
Show:
 NameDescription
Category

Gets the message category ID. (Inherited from TwclMessage.)

Id

Gets the message ID. (Inherited from TwclMessage.)

State

Gets the current power state.

Top
Show:
 NameDescription
AddRef

Increments the reference count for the object. This method should be called for every new reference to the object. (Inherited from TwclMessage.)

Release

Decrements the reference count for the object. (Inherited from TwclMessage.)

Top

This message is supported on Windows 8 and above.