Microsoft.Win32.SystemEvents Provides data for the event. Initializes a new instance of the class using the specified power mode event type. One of the values that represents the type of power mode event. Gets an identifier that indicates the type of the power mode event that has occurred. One of the values. Represents the method that will handle the event. The source of the event. When this event is raised by the class, this object is always . A that contains the event data. Defines identifiers for power mode events reported by the operating system. The operating system is about to resume from a suspended state. A power mode status notification event has been raised by the operating system. This might indicate a weak or charging battery, a transition between AC power and battery, or another change in the status of the system power supply. The operating system is about to be suspended. Provides data for the event. Initializes a new instance of the class. One of the values indicating how the session ended. Gets an identifier that indicates how the session ended. One of the values that indicates how the session ended. Represents the method that will handle the event. The source of the event. When this event is raised by the class, this object is always . A that contains the event data. Provides data for the event. Initializes a new instance of the class using the specified value indicating the type of session close event that is occurring. One of the that specifies how the session ends. Gets or sets a value indicating whether to cancel the user request to end the session. to cancel the user request to end the session; otherwise, . Gets the reason the session is ending. One of the values that specifies how the session is ending. Represents the method that will handle the event from the operating system. The source of the event. When this event is raised by the class, this object is always . A that contains the event data. Defines identifiers that represent how the current logon session is ending. The user is logging off and ending the current user session. The operating system continues to run. The operating system is shutting down. Provides data for the event. Initializes a new instance of the class using the specified session change event type identifer. A that indicates the type of session change event. Gets an identifier that indicates the type of session change event. A indicating the type of the session change event. Represents the method that will handle the event. The source of the event. A indicating the type of the session change event. Defines identifiers used to represent the type of a session switch event. A session has been connected from the console. A session has been disconnected from the console. A session has been connected from a remote connection. A session has been disconnected from a remote connection. A session has been locked. A user has logged off from a session. A user has logged on to a session. A session has changed its status to or from remote controlled mode. A session has been unlocked. Provides access to system event notifications. This class cannot be inherited. Occurs when the user changes the display settings. System event notifications are not supported under the current context. Server processes, for example, might not support global system event notifications. The attempt to create a system events window thread did not succeed. Occurs when the display settings are changing. System event notifications are not supported under the current context. Server processes, for example, might not support global system event notifications. The attempt to create a system events window thread did not succeed. Occurs before the thread that listens for system events is terminated. System event notifications are not supported under the current context. Server processes, for example, might not support global system event notifications. The attempt to create a system events window thread did not succeed. Occurs when the user adds fonts to or removes fonts from the system. System event notifications are not supported under the current context. Server processes, for example, might not support global system event notifications. The attempt to create a system events window thread did not succeed. Occurs when the system is running out of available RAM. System event notifications are not supported under the current context. Server processes, for example, might not support global system event notifications. The attempt to create a system events window thread did not succeed. Occurs when the user switches to an application that uses a different palette. System event notifications are not supported under the current context. Server processes, for example, might not support global system event notifications. The attempt to create a system events window thread did not succeed. Occurs when the user suspends or resumes the system. System event notifications are not supported under the current context. Server processes, for example, might not support global system event notifications. The attempt to create a system events window thread did not succeed. Occurs when the user is logging off or shutting down the system. System event notifications are not supported under the current context. Server processes, for example, might not support global system event notifications. The attempt to create a system events window thread did not succeed. Occurs when the user is trying to log off or shut down the system. System event notifications are not supported under the current context. Server processes, for example, might not support global system event notifications. The attempt to create a system events window thread did not succeed. Occurs when the currently logged-in user has changed. System event notifications are not supported under the current context. Server processes, for example, might not support global system event notifications. The attempt to create a system events window thread did not succeed. Occurs when the user changes the time on the system clock. System event notifications are not supported under the current context. Server processes, for example, might not support global system event notifications. The attempt to create a system events window thread did not succeed. Occurs when a windows timer interval has expired. System event notifications are not supported under the current context. Server processes, for example, might not support global system event notifications. The attempt to create a system events window thread did not succeed. Occurs when a user preference has changed. System event notifications are not supported under the current context. Server processes, for example, might not support global system event notifications. The attempt to create a system events window thread did not succeed. Occurs when a user preference is changing. System event notifications are not supported under the current context. Server processes, for example, might not support global system event notifications. The attempt to create a system events window thread did not succeed. Creates a new window timer associated with the system events window. Specifies the interval between timer notifications, in milliseconds. The interval is less than or equal to zero. System event notifications are not supported under the current context. Server processes, for example, might not support global system event notifications. The attempt to create a system events window thread did not succeed, or the attempt to create the timer did not succeed. The ID of the new timer. Invokes the specified delegate using the thread that listens for system events. A delegate to invoke using the thread that listens for system events. System event notifications are not supported under the current context. Server processes, for example, might not support global system event notifications. The attempt to create a system events window thread did not succeed. Terminates the timer specified by the given id. The ID of the timer to terminate. System event notifications are not supported under the current context. Server processes, for example, might not support global system event notifications. The attempt to create a system events window thread did not succeed, or the attempt to terminate the timer did not succeed. Provides data for the event. Initializes a new instance of the class. The ID number for the timer. Gets the ID number for the timer. The ID number for the timer. Represents the method that will handle the event. The source of the event. When this event is raised by the class, this object is always . A that contains the event data. Defines identifiers that represent categories of user preferences. Indicates user preferences associated with accessibility features of the system for users with disabilities. Indicates user preferences associated with system colors. This category includes such as the default color of windows or menus. Indicates user preferences associated with the system desktop. This category includes the background image or background image layout of the desktop. Indicates user preferences that are not associated with any other category. Indicates user preferences for icon settings, including icon height and spacing. Indicates user preferences for keyboard settings, such as the key down repeat rate and delay. Indicates changes in user preferences for regional settings, such as the character encoding and culture strings. Indicates user preferences for menu settings, such as menu delays and text alignment. Indicates user preferences for mouse settings, such as double-click time and mouse sensitivity. Indicates user preferences for policy settings, such as user rights and access levels. Indicates the user preferences for system power settings. This category includes power feature settings, such as the idle time before the system automatically enters low power mode. Indicates user preferences associated with the screensaver. Indicates user preferences associated with visual styles, such as enabling or disabling visual styles and switching from one visual style to another. Indicates user preferences associated with the dimensions and characteristics of windows on the system. Provides data for the event. Initializes a new instance of the class using the specified user preference category identifier. One of the values that indicates the user preference category that has changed. Gets the category of user preferences that has changed. One of the values that indicates the category of user preferences that has changed. Represents the method that will handle the event. The source of the event. When this event is raised by the class, this object is always . A that contains the event data. Provides data for the event. Initializes a new instance of the class using the specified user preference category identifier. One of the values that indicate the user preference category that is changing. Gets the category of user preferences that is changing. One of the values that indicates the category of user preferences that is changing. Represents the method that will handle the event. The source of the event. When this event is raised by the class, this object is always . A that contains the event data.