[Mono-list] stubs for Microsoft.Win32

Guenther Roith groith@tcrz.net
Sun, 15 Sep 2002 16:44:44 +0200


This is a multi-part message in MIME format.

------=_NextPart_000_0022_01C25CD7.31A4C080
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

Hello!

I've dstarted Microsoft.Win32 with some stubs for the part of the namespace
Microsoft.Win32,that lives in System.dll.
Can I commit?

Johannes

------=_NextPart_000_0022_01C25CD7.31A4C080
Content-Type: application/octet-stream;
	name="PowerModeChangedEventArgs.cs"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename="PowerModeChangedEventArgs.cs"

//
// PowerModeChanged.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;
			}
			
		}
	
	}

}

------=_NextPart_000_0022_01C25CD7.31A4C080
Content-Type: application/octet-stream;
	name="PowerModeChangedEventHandler.cs"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="PowerModeChangedEventHandler.cs"

//
// PowerModeChanged.cs
//
// Author:
//  Johannes Roith (johannes@jroith.de)
//
// (C) 2002 Johannes Roith
//
namespace Microsoft.Win32 {

	/// <summary>
	/// </summary>
public delegate void PowerModeChangedEventHandler(object sender, =
PowerModeChangedEventArgs e);
}

------=_NextPart_000_0022_01C25CD7.31A4C080
Content-Type: application/octet-stream;
	name="PowerModes.cs"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename="PowerModes.cs"

//
// 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,
	};
}

------=_NextPart_000_0022_01C25CD7.31A4C080
Content-Type: application/octet-stream;
	name="SessionEndedEventArgs.cs"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename="SessionEndedEventArgs.cs"

//
// PowerModeChanged.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;
		}
		
	}
	
}

}

------=_NextPart_000_0022_01C25CD7.31A4C080
Content-Type: application/octet-stream;
	name="SessionEndedEventHandler.cs"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="SessionEndedEventHandler.cs"

//
// PowerModeChanged.cs
//
// Author:
//  Johannes Roith (johannes@jroith.de)
//
// (C) 2002 Johannes Roith
//
namespace Microsoft.Win32 {

	/// <summary>
	/// </summary>
public delegate void SessionEndedEventHandler(object sender,   =
SessionEndedEventArgs e);

}

------=_NextPart_000_0022_01C25CD7.31A4C080
Content-Type: application/octet-stream;
	name="SessionEndingEventArgs.cs"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename="SessionEndingEventArgs.cs"

//
// PowerModeChanged.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{
		
		}
		
	}

}

}

------=_NextPart_000_0022_01C25CD7.31A4C080
Content-Type: application/octet-stream;
	name="SessionEndingEventHandler.cs"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="SessionEndingEventHandler.cs"

//
// PowerModeChanged.cs
//
// Author:
//  Johannes Roith (johannes@jroith.de)
//
// (C) 2002 Johannes Roith
//
namespace Microsoft.Win32 {

	/// <summary>
	/// </summary>
public delegate void SessionEndingEventHandler(object sender,   =
SessionEndingEventArgs e);
}

------=_NextPart_000_0022_01C25CD7.31A4C080
Content-Type: application/octet-stream;
	name="SessionEndReasons.cs"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename="SessionEndReasons.cs"

//
// PowerModes.cs
//
// Author:
//  Johannes Roith (johannes@jroith.de)
//
// (C) 2002 Johannes Roith
//
namespace Microsoft.Win32 {

	/// <summary>
	/// </summary>
	public enum SessionEndReasons : int {
		Logoff = 1,
		SystemShutdown = 2,
	};
}

------=_NextPart_000_0022_01C25CD7.31A4C080
Content-Type: application/octet-stream;
	name="SystemEvents.cs"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename="SystemEvents.cs"

//
// PowerModeChanged.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;

}

}

------=_NextPart_000_0022_01C25CD7.31A4C080
Content-Type: application/octet-stream;
	name="TimerElapsedEventArgs.cs"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename="TimerElapsedEventArgs.cs"

//
// PowerModeChanged.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;
		}
		
	}
	
}

}

------=_NextPart_000_0022_01C25CD7.31A4C080
Content-Type: application/octet-stream;
	name="TimerElapsedEventHandler.cs"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="TimerElapsedEventHandler.cs"

//
// PowerModeChanged.cs
//
// Author:
//  Johannes Roith (johannes@jroith.de)
//
// (C) 2002 Johannes Roith
//
namespace Microsoft.Win32 {

	/// <summary>
	/// </summary>
public delegate void TimerElapsedEventHandler(object sender,   =
TimerElapsedEventArgs e);
}

------=_NextPart_000_0022_01C25CD7.31A4C080
Content-Type: application/octet-stream;
	name="UserPreferenceCategory.cs"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename="UserPreferenceCategory.cs"

//
// PowerModes.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
	};
}

------=_NextPart_000_0022_01C25CD7.31A4C080
Content-Type: application/octet-stream;
	name="UserPreferenceChangedEventArgs.cs"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename="UserPreferenceChangedEventArgs.cs"

//
// PowerModeChanged.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;
		}
		
	}
	
}

}

------=_NextPart_000_0022_01C25CD7.31A4C080
Content-Type: application/octet-stream;
	name="UserPreferenceChangedEventHandler.cs"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="UserPreferenceChangedEventHandler.cs"

//
// PowerModeChanged.cs
//
// Author:
//  Johannes Roith (johannes@jroith.de)
//
// (C) 2002 Johannes Roith
//
namespace Microsoft.Win32 {

	/// <summary>
	/// </summary>
public delegate void UserPreferenceChangedEventHandler(   object sender, =
  UserPreferenceChangedEventArgs e);
}

------=_NextPart_000_0022_01C25CD7.31A4C080
Content-Type: application/octet-stream;
	name="UserPreferenceChangingEventArgs.cs"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename="UserPreferenceChangingEventArgs.cs"

//
// PowerModeChanged.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;
		}
		
	}
	
}

}

------=_NextPart_000_0022_01C25CD7.31A4C080
Content-Type: application/octet-stream;
	name="UserPreferenceChangingEventHandler.cs"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="UserPreferenceChangingEventHandler.cs"

//
// PowerModeChanged.cs
//
// Author:
//  Johannes Roith (johannes@jroith.de)
//
// (C) 2002 Johannes Roith
//
namespace Microsoft.Win32 {

	/// <summary>
	/// </summary>
public delegate void UserPreferenceChangingEventHandler(   object =
sender,   UserPreferenceChangingEventArgs e);
}

------=_NextPart_000_0022_01C25CD7.31A4C080--