Serial Framework C++ Edition
Public Member Functions | List of all members
CwclPowerStateChangeMessage Class Reference

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

#include <wclMessaging.h>

Inheritance diagram for CwclPowerStateChangeMessage:
CwclSystemCategoryMessage CwclMessage

Public Member Functions

 CwclPowerStateChangeMessage (const ULONG State)
 Creates new Power State Changed message object.
 
ULONG GetState () const
 Gets the current power state.
 
 __declspec (property(get=GetState)) ULONG State
 Gets the current power state.
 
- Public Member Functions inherited from CwclSystemCategoryMessage
 CwclSystemCategoryMessage (const unsigned char Id)
 Creates new system message object.
 
- Public Member Functions inherited from CwclMessage
 CwclMessage (const unsigned char Id, const unsigned char Category)
 Creates new message object.
 
virtual ~CwclMessage ()
 Frees the message object.
 
void AddRef ()
 Increments the reference count of the object. This method should be called for every new reference to the object.
 
void Release ()
 Decrements the reference count for the object.
 
unsigned char GetCategory () const
 Gets the message category ID.
 
 __declspec (property(get=GetCategory)) unsigned char Category
 Gets the message category ID.
 
unsigned char GetId () const
 Gets the message ID.
 
 __declspec (property(get=GetId)) unsigned char Id
 Gets the message ID.
 

Detailed Description

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

This message is supported on Windows 8 and above.

See also
CwclSystemCategoryMessage