NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

SystemEvents Members

Public:

Methods

CreateTimer Creates a new window timer asociated with the system events window.
Equals (inherited from Object) Determines whether the specified Object is the same instance as the current Object. Subclasses are expected to override this method to support value equality (not reference equality).
GetHashCode (inherited from Object) Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
GetType (inherited from Object) Gets the Type of the Object.
KillTimer Kills the timer specified by the given id.
ToString (inherited from Object) Returns a String that represents the current Object.

Events

DisplaySettingsChanged [To be supplied.]
InstalledFontsChanged [To be supplied.]
LowMemory [To be supplied.]
PaletteChanged [To be supplied.]
PowerModeChanged [To be supplied.]
SessionEnded [To be supplied.]
SessionEnding [To be supplied.]
TimeChanged [To be supplied.]
TimerElapsed [To be supplied.]
UserPreferenceChanged [To be supplied.]

Protected:

Methods

Finalize (inherited from Object) Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by the Garbage Collector (GC). This method may be ignored by the runtime; therefore, necessary cleanup operations should be done elsewhere.
MemberwiseClone (inherited from Object) Creates a shallow copy of the current Object.

Event Hookup:

Methods

AddOnDisplaySettingsChanged Adds an event handler that will be called when the display settings change. This event occurs when the display resolution or color depth changes, or a monitor is added or removed.
AddOnInstalledFontsChanged Adds an event handler that will be called a new font is added or removed from the set of installed system fonts.
AddOnLowMemory Adds an event handler that will be called when the memory of the system is low. Different operating systems may raise this event for different reasons, but it usually indicates that the system is having trouble finding enough available memory to operate. On Windows 2000 systems, for example, this event will be raised when the system is spending more than 50% of its processor time locating memory than running user code.
AddOnPaletteChanged Adds an event handler that will be called when the color palette changes.
AddOnPowerModeChanged Adds an event handler that will be called when the power mode of the system has changed. This event may fire when the system goes into a sleep or low power mode, or when it wakes up from such a mode.
AddOnSessionEnded Adds an event handler that will be called when the current logon session is about to end.
AddOnSessionEnding Adds an event handler that will be called when the current logon session is ending. You may cancel this by setting Cancel in the event args to true. If you do not cancel, all applications will be closed and the user will be logged off. Generally, a SessionEnded event will occur after this, but it is not guaranteed.
AddOnTimeChanged Adds an event handler that will be called when the time or date has changed. This can occur through user action or when the system adjusts for daylight savings time.
AddOnTimerElapsed Adds an event handler that will be called when a windows timer interval expires.
AddOnUserPreferenceChanged Adds an event handler that will be called when the user preferences have changed. User preferences are things such as keyboard settings, color choices, and font sizes. Operating systems may allow customization of these items, and this event provides a way for objects to know when when a particular item has changed.

Event handlers may be called in any order-- your handler may even run before System.Drawing.Color is told that the system colors have changed! For this reason, you should do as little as possible inside your handler-- consider invalidating objects rather than regenerating them.

RemoveOnDisplaySettingsChanged Removes a previously added event handler.
RemoveOnInstalledFontsChanged Removes a previously added event handler.
RemoveOnLowMemory Removes a previously added event handler.
RemoveOnPaletteChanged Removes a previously added event handler.
RemoveOnPowerModeChanged Removes a previously added event handler.
RemoveOnSessionEnded Removes a previously added event handler.
RemoveOnSessionEnding Removes a previously added event handler.
RemoveOnTimeChanged Removes a previously added event handler.
RemoveOnTimerElapsed Removes a previously added event handler.
RemoveOnUserPreferenceChanged Removes a previously added event handler.

See Also

SystemEvents Class | System.Core Namespace