Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Roith <johannes@mono-cvs.ximian.com>2002-09-15 20:17:22 +0400
committerJohannes Roith <johannes@mono-cvs.ximian.com>2002-09-15 20:17:22 +0400
commit8cfefa51291967c3c6fb0a50bdf180c0931e165c (patch)
tree0a782244fc322f089712a847be4fa13446324995 /mcs/class/System/Microsoft.Win32
parent9819ad6367cc467f6c1feb6d20283be554ce934a (diff)
initial import
svn path=/trunk/mcs/; revision=7476
Diffstat (limited to 'mcs/class/System/Microsoft.Win32')
-rw-r--r--mcs/class/System/Microsoft.Win32/ChangeLog21
-rw-r--r--mcs/class/System/Microsoft.Win32/PowerModeChangedEventArgs.cs32
-rw-r--r--mcs/class/System/Microsoft.Win32/PowerModeChangedEventHandler.cs14
-rw-r--r--mcs/class/System/Microsoft.Win32/PowerModes.cs18
-rw-r--r--mcs/class/System/Microsoft.Win32/SessionEndReasons.cs17
-rw-r--r--mcs/class/System/Microsoft.Win32/SessionEndedEventArgs.cs32
-rw-r--r--mcs/class/System/Microsoft.Win32/SessionEndedEventHandler.cs15
-rw-r--r--mcs/class/System/Microsoft.Win32/SessionEndingEventArgs.cs45
-rw-r--r--mcs/class/System/Microsoft.Win32/SessionEndingEventHandler.cs14
-rw-r--r--mcs/class/System/Microsoft.Win32/SystemEvents.cs35
-rw-r--r--mcs/class/System/Microsoft.Win32/TimerElapsedEventArgs.cs33
-rw-r--r--mcs/class/System/Microsoft.Win32/TimerElapsedEventHandler.cs14
-rw-r--r--mcs/class/System/Microsoft.Win32/UserPreferenceCategory.cs28
-rw-r--r--mcs/class/System/Microsoft.Win32/UserPreferenceChangedEventArgs.cs33
-rw-r--r--mcs/class/System/Microsoft.Win32/UserPreferenceChangedEventHandler.cs14
-rw-r--r--mcs/class/System/Microsoft.Win32/UserPreferenceChangingEventArgs.cs33
-rw-r--r--mcs/class/System/Microsoft.Win32/UserPreferenceChangingEventHandler.cs14
17 files changed, 412 insertions, 0 deletions
diff --git a/mcs/class/System/Microsoft.Win32/ChangeLog b/mcs/class/System/Microsoft.Win32/ChangeLog
new file mode 100644
index 00000000000..b5402a128ef
--- /dev/null
+++ b/mcs/class/System/Microsoft.Win32/ChangeLog
@@ -0,0 +1,21 @@
+2002-9-15 Johannes Roith <johannes@jroith.de>
+
+ * ChangeLog: Add the change log to this directory
+
+ * PowerModeChangedEventArgs.cs
+ * PowerModeChangedEventHandler.cs
+ * PowerModes.cs
+ * SessionEndedEventArgs.cs
+ * SessionEndedEventHandler.cs
+ * SessionEndingEventArgs.cs
+ * SessionEndingEventHandler.cs
+ * SessionEndReasons.cs
+ * SystemEvents.cs
+ * TimerElapsedEventArgs.cs
+ * TimerElapsedEventHandler.cs
+ * UserPreferenceCategory.cs
+ * UserPreferenceChangedEventArgs.cs
+ * UserPreferenceChangedEventHandler.cs
+ * UserPreferenceChangingEventArgs.cs
+ * UserPreferenceChangingEventHandler.cs:
+ Initial import. \ No newline at end of file
diff --git a/mcs/class/System/Microsoft.Win32/PowerModeChangedEventArgs.cs b/mcs/class/System/Microsoft.Win32/PowerModeChangedEventArgs.cs
new file mode 100644
index 00000000000..d00039e7c03
--- /dev/null
+++ b/mcs/class/System/Microsoft.Win32/PowerModeChangedEventArgs.cs
@@ -0,0 +1,32 @@
+//
+// PowerModeChangedEventArgs.cs
+//
+// Author:
+// Johannes Roith (johannes@jroith.de)
+//
+// (C) 2002 Johannes Roith
+//
+namespace Microsoft.Win32 {
+
+ /// <summary>
+ /// </summary>
+ public class PowerModeChangedEventArgs : System.EventArgs{
+
+ PowerModes mymode;
+
+ public PowerModeChangedEventArgs(PowerModes mode)
+ {
+ this.mymode = mode;
+ }
+
+ public PowerModes Mode {
+
+ get{
+ return mymode;
+ }
+
+ }
+
+ }
+
+}
diff --git a/mcs/class/System/Microsoft.Win32/PowerModeChangedEventHandler.cs b/mcs/class/System/Microsoft.Win32/PowerModeChangedEventHandler.cs
new file mode 100644
index 00000000000..0fadd47a6e0
--- /dev/null
+++ b/mcs/class/System/Microsoft.Win32/PowerModeChangedEventHandler.cs
@@ -0,0 +1,14 @@
+//
+// PowerModeChangedEventHandler.cs
+//
+// Author:
+// Johannes Roith (johannes@jroith.de)
+//
+// (C) 2002 Johannes Roith
+//
+namespace Microsoft.Win32 {
+
+ /// <summary>
+ /// </summary>
+public delegate void PowerModeChangedEventHandler(object sender, PowerModeChangedEventArgs e);
+}
diff --git a/mcs/class/System/Microsoft.Win32/PowerModes.cs b/mcs/class/System/Microsoft.Win32/PowerModes.cs
new file mode 100644
index 00000000000..80b17f6cec3
--- /dev/null
+++ b/mcs/class/System/Microsoft.Win32/PowerModes.cs
@@ -0,0 +1,18 @@
+//
+// PowerModes.cs
+//
+// Author:
+// Johannes Roith (johannes@jroith.de)
+//
+// (C) 2002 Johannes Roith
+//
+namespace Microsoft.Win32 {
+
+ /// <summary>
+ /// </summary>
+ public enum PowerModes : int {
+ Resume = 1,
+ StatusChange = 2,
+ Suspend = 3,
+ };
+}
diff --git a/mcs/class/System/Microsoft.Win32/SessionEndReasons.cs b/mcs/class/System/Microsoft.Win32/SessionEndReasons.cs
new file mode 100644
index 00000000000..3ffe9ca2ef4
--- /dev/null
+++ b/mcs/class/System/Microsoft.Win32/SessionEndReasons.cs
@@ -0,0 +1,17 @@
+//
+// SessionEndReasons.cs
+//
+// Author:
+// Johannes Roith (johannes@jroith.de)
+//
+// (C) 2002 Johannes Roith
+//
+namespace Microsoft.Win32 {
+
+ /// <summary>
+ /// </summary>
+ public enum SessionEndReasons : int {
+ Logoff = 1,
+ SystemShutdown = 2,
+ };
+}
diff --git a/mcs/class/System/Microsoft.Win32/SessionEndedEventArgs.cs b/mcs/class/System/Microsoft.Win32/SessionEndedEventArgs.cs
new file mode 100644
index 00000000000..5e0acab3330
--- /dev/null
+++ b/mcs/class/System/Microsoft.Win32/SessionEndedEventArgs.cs
@@ -0,0 +1,32 @@
+//
+// SessionEndedEventArgs.cs
+//
+// Author:
+// Johannes Roith (johannes@jroith.de)
+//
+// (C) 2002 Johannes Roith
+//
+namespace Microsoft.Win32 {
+
+ /// <summary>
+ /// </summary>
+public class SessionEndedEventArgs : System.EventArgs{
+
+ SessionEndReasons myreason;
+
+ public SessionEndedEventArgs(SessionEndReasons reason)
+ {
+ this.myreason = reason;
+ }
+
+ public SessionEndReasons Reason {
+
+ get{
+ return myreason;
+ }
+
+ }
+
+}
+
+}
diff --git a/mcs/class/System/Microsoft.Win32/SessionEndedEventHandler.cs b/mcs/class/System/Microsoft.Win32/SessionEndedEventHandler.cs
new file mode 100644
index 00000000000..d2f067ce1e1
--- /dev/null
+++ b/mcs/class/System/Microsoft.Win32/SessionEndedEventHandler.cs
@@ -0,0 +1,15 @@
+//
+// SessionEndedEventHandler.cs
+//
+// Author:
+// Johannes Roith (johannes@jroith.de)
+//
+// (C) 2002 Johannes Roith
+//
+namespace Microsoft.Win32 {
+
+ /// <summary>
+ /// </summary>
+public delegate void SessionEndedEventHandler(object sender, SessionEndedEventArgs e);
+
+}
diff --git a/mcs/class/System/Microsoft.Win32/SessionEndingEventArgs.cs b/mcs/class/System/Microsoft.Win32/SessionEndingEventArgs.cs
new file mode 100644
index 00000000000..19279827fc6
--- /dev/null
+++ b/mcs/class/System/Microsoft.Win32/SessionEndingEventArgs.cs
@@ -0,0 +1,45 @@
+//
+// SessionEndingEventArgs.cs
+//
+// Author:
+// Johannes Roith (johannes@jroith.de)
+//
+// (C) 2002 Johannes Roith
+//
+namespace Microsoft.Win32 {
+
+ /// <summary>
+ /// </summary>
+public class SessionEndingEventArgs : System.EventArgs{
+
+ SessionEndReasons myreason;
+ bool mycancel;
+
+ public SessionEndingEventArgs(SessionEndReasons reason)
+ {
+ this.myreason = reason;
+ }
+
+ public SessionEndReasons Reason {
+
+ get{
+ return myreason;
+ }
+
+ }
+
+
+ public bool Cancel {
+
+ get{
+ return mycancel;
+ }
+ set{
+
+ }
+
+ }
+
+}
+
+}
diff --git a/mcs/class/System/Microsoft.Win32/SessionEndingEventHandler.cs b/mcs/class/System/Microsoft.Win32/SessionEndingEventHandler.cs
new file mode 100644
index 00000000000..0d66f15d068
--- /dev/null
+++ b/mcs/class/System/Microsoft.Win32/SessionEndingEventHandler.cs
@@ -0,0 +1,14 @@
+//
+// SessionEndingEventHandler.cs
+//
+// Author:
+// Johannes Roith (johannes@jroith.de)
+//
+// (C) 2002 Johannes Roith
+//
+namespace Microsoft.Win32 {
+
+ /// <summary>
+ /// </summary>
+public delegate void SessionEndingEventHandler(object sender, SessionEndingEventArgs e);
+}
diff --git a/mcs/class/System/Microsoft.Win32/SystemEvents.cs b/mcs/class/System/Microsoft.Win32/SystemEvents.cs
new file mode 100644
index 00000000000..a8025454b6c
--- /dev/null
+++ b/mcs/class/System/Microsoft.Win32/SystemEvents.cs
@@ -0,0 +1,35 @@
+//
+// SystemEvents.cs
+//
+// Author:
+// Johannes Roith (johannes@jroith.de)
+//
+// (C) 2002 Johannes Roith
+//
+namespace Microsoft.Win32 {
+
+ /// <summary>
+ /// </summary>
+public sealed class SystemEvents : System.EventArgs{
+
+public static void InvokeOnEventsThread(System.Delegate method)
+{
+
+}
+
+public static event System.EventHandler DisplaySettingsChanged;
+public static event System.EventHandler EventsThreadShutdown;
+public static event System.EventHandler InstalledFontsChanged;
+public static event System.EventHandler LowMemory;
+public static event System.EventHandler PaletteChanged;
+public static event System.EventHandler PowerModeChanged;
+public static event System.EventHandler SessionEnded;
+public static event System.EventHandler SessionEnding;
+public static event System.EventHandler TimeChanged;
+public static event System.EventHandler TimerElapsed;
+public static event System.EventHandler UserPreferenceChanged;
+public static event System.EventHandler UserPreferenceChanging;
+
+}
+
+}
diff --git a/mcs/class/System/Microsoft.Win32/TimerElapsedEventArgs.cs b/mcs/class/System/Microsoft.Win32/TimerElapsedEventArgs.cs
new file mode 100644
index 00000000000..a44c8eecee7
--- /dev/null
+++ b/mcs/class/System/Microsoft.Win32/TimerElapsedEventArgs.cs
@@ -0,0 +1,33 @@
+//
+// TimerElapsedEventArgs.cs
+//
+// Author:
+// Johannes Roith (johannes@jroith.de)
+//
+// (C) 2002 Johannes Roith
+//
+namespace Microsoft.Win32 {
+
+ /// <summary>
+ /// </summary>
+public class TimerElapsedEventArgs : System.EventArgs{
+
+ System.IntPtr mytimerId;
+
+
+ public TimerElapsedEventArgs(System.IntPtr timerId)
+ {
+ this.mytimerId = timerId;
+ }
+
+ public System.IntPtr TimerId {
+
+ get{
+ return mytimerId;
+ }
+
+ }
+
+}
+
+}
diff --git a/mcs/class/System/Microsoft.Win32/TimerElapsedEventHandler.cs b/mcs/class/System/Microsoft.Win32/TimerElapsedEventHandler.cs
new file mode 100644
index 00000000000..102e53c7a01
--- /dev/null
+++ b/mcs/class/System/Microsoft.Win32/TimerElapsedEventHandler.cs
@@ -0,0 +1,14 @@
+//
+// TimerElapsedEventHandler.cs
+//
+// Author:
+// Johannes Roith (johannes@jroith.de)
+//
+// (C) 2002 Johannes Roith
+//
+namespace Microsoft.Win32 {
+
+ /// <summary>
+ /// </summary>
+public delegate void TimerElapsedEventHandler(object sender, TimerElapsedEventArgs e);
+}
diff --git a/mcs/class/System/Microsoft.Win32/UserPreferenceCategory.cs b/mcs/class/System/Microsoft.Win32/UserPreferenceCategory.cs
new file mode 100644
index 00000000000..ab2775d4735
--- /dev/null
+++ b/mcs/class/System/Microsoft.Win32/UserPreferenceCategory.cs
@@ -0,0 +1,28 @@
+//
+// UserPreferenceCategory.cs
+//
+// Author:
+// Johannes Roith (johannes@jroith.de)
+//
+// (C) 2002 Johannes Roith
+//
+namespace Microsoft.Win32 {
+
+ /// <summary>
+ /// </summary>
+ public enum UserPreferenceCategory : int {
+ Accessibility = 1,
+ Color = 2,
+ Desktop = 3,
+ General = 4,
+ Icon = 5,
+ Keyboard = 6,
+ Menu = 7,
+ Mouse = 8,
+ Policy = 0,
+ Power = 10,
+ Screensaver = 11,
+ Window = 12,
+ Locale = 13
+ };
+}
diff --git a/mcs/class/System/Microsoft.Win32/UserPreferenceChangedEventArgs.cs b/mcs/class/System/Microsoft.Win32/UserPreferenceChangedEventArgs.cs
new file mode 100644
index 00000000000..52c351ee145
--- /dev/null
+++ b/mcs/class/System/Microsoft.Win32/UserPreferenceChangedEventArgs.cs
@@ -0,0 +1,33 @@
+//
+// UserPreferenceChangedEventArgs.cs
+//
+// Author:
+// Johannes Roith (johannes@jroith.de)
+//
+// (C) 2002 Johannes Roith
+//
+namespace Microsoft.Win32 {
+
+ /// <summary>
+ /// </summary>
+public class UserPreferenceChangedEventArgs : System.EventArgs{
+
+ UserPreferenceCategory mycategory;
+
+
+ public UserPreferenceChangedEventArgs(UserPreferenceCategory category)
+ {
+ this.mycategory = category;
+ }
+
+ public UserPreferenceCategory category {
+
+ get{
+ return mycategory;
+ }
+
+ }
+
+}
+
+}
diff --git a/mcs/class/System/Microsoft.Win32/UserPreferenceChangedEventHandler.cs b/mcs/class/System/Microsoft.Win32/UserPreferenceChangedEventHandler.cs
new file mode 100644
index 00000000000..3a8afdd4689
--- /dev/null
+++ b/mcs/class/System/Microsoft.Win32/UserPreferenceChangedEventHandler.cs
@@ -0,0 +1,14 @@
+//
+// UserPreferenceChangedEventHandler.cs
+//
+// Author:
+// Johannes Roith (johannes@jroith.de)
+//
+// (C) 2002 Johannes Roith
+//
+namespace Microsoft.Win32 {
+
+ /// <summary>
+ /// </summary>
+public delegate void UserPreferenceChangedEventHandler( object sender, UserPreferenceChangedEventArgs e);
+}
diff --git a/mcs/class/System/Microsoft.Win32/UserPreferenceChangingEventArgs.cs b/mcs/class/System/Microsoft.Win32/UserPreferenceChangingEventArgs.cs
new file mode 100644
index 00000000000..9e05693dd49
--- /dev/null
+++ b/mcs/class/System/Microsoft.Win32/UserPreferenceChangingEventArgs.cs
@@ -0,0 +1,33 @@
+//
+// UserPreferenceChangingEventArgs.cs
+//
+// Author:
+// Johannes Roith (johannes@jroith.de)
+//
+// (C) 2002 Johannes Roith
+//
+namespace Microsoft.Win32 {
+
+ /// <summary>
+ /// </summary>
+public class UserPreferenceChangingEventArgs : System.EventArgs{
+
+ UserPreferenceCategory mycategory;
+
+
+ public UserPreferenceChangingEventArgs(UserPreferenceCategory category)
+ {
+ this.mycategory = category;
+ }
+
+ public UserPreferenceCategory category {
+
+ get{
+ return mycategory;
+ }
+
+ }
+
+}
+
+}
diff --git a/mcs/class/System/Microsoft.Win32/UserPreferenceChangingEventHandler.cs b/mcs/class/System/Microsoft.Win32/UserPreferenceChangingEventHandler.cs
new file mode 100644
index 00000000000..91659c6e1a1
--- /dev/null
+++ b/mcs/class/System/Microsoft.Win32/UserPreferenceChangingEventHandler.cs
@@ -0,0 +1,14 @@
+//
+// UserPreferenceChangingEventHandler.cs
+//
+// Author:
+// Johannes Roith (johannes@jroith.de)
+//
+// (C) 2002 Johannes Roith
+//
+namespace Microsoft.Win32 {
+
+ /// <summary>
+ /// </summary>
+public delegate void UserPreferenceChangingEventHandler( object sender, UserPreferenceChangingEventArgs e);
+}