[Mwinapi-commits] SF.net SVN: mwinapi:[117] trunk/ManagedWinapi
Status: Beta
Brought to you by:
schierlm
|
From: <dan...@us...> - 2013-07-23 08:31:58
|
Revision: 117
http://sourceforge.net/p/mwinapi/code/117
Author: danielrose
Date: 2013-07-23 08:31:55 +0000 (Tue, 23 Jul 2013)
Log Message:
-----------
Marked the assembly as CLS-compliant.
Marked all places where this is not the case (such as by using uint) explicitly as not CLS-compliant.
Modified Paths:
--------------
trunk/ManagedWinapi/Accessibility/AccessibleObjectListener.cs
trunk/ManagedWinapi/Accessibility/SystemAccessibleObject.cs
trunk/ManagedWinapi/Audio/Mixer/Mixer.cs
trunk/ManagedWinapi/ExtendedFileInfo.cs
trunk/ManagedWinapi/Hooks/JournalHook.cs
trunk/ManagedWinapi/Hooks/LowLevelHook.cs
trunk/ManagedWinapi/KeyboardKey.cs
trunk/ManagedWinapi/PrivilegedActions.cs
trunk/ManagedWinapi/Properties/AssemblyInfo.cs
trunk/ManagedWinapi/Windows/SystemListView.cs
trunk/ManagedWinapi/Windows/SystemWindow.cs
Modified: trunk/ManagedWinapi/Accessibility/AccessibleObjectListener.cs
===================================================================
--- trunk/ManagedWinapi/Accessibility/AccessibleObjectListener.cs 2013-07-23 08:17:11 UTC (rev 116)
+++ trunk/ManagedWinapi/Accessibility/AccessibleObjectListener.cs 2013-07-23 08:31:55 UTC (rev 117)
@@ -101,6 +101,7 @@
/// The Process ID to listen to.
/// Default 0 listens to all processes.
/// </summary>
+ [CLSCompliant(false)]
public UInt32 ProcessId
{
get { return processId; }
@@ -111,6 +112,7 @@
/// The Thread ID to listen to.
/// Default 0 listens to all threads.
/// </summary>
+ [CLSCompliant(false)]
public UInt32 ThreadId
{
get { return threadId; }
@@ -202,6 +204,7 @@
/// <summary>
/// Initializes a new instance of the AccessibleEventArgs class.
/// </summary>
+ [CLSCompliant(false)]
public AccessibleEventArgs(AccessibleEventType eventType,
IntPtr hwnd, uint idObject, uint idChild, uint dwEventThread, uint dwmsEventTime)
{
@@ -232,6 +235,7 @@
/// <summary>
/// Object ID.
/// </summary>
+ [CLSCompliant(false)]
public uint ObjectID
{
get { return idObject; }
@@ -240,6 +244,7 @@
/// <summary>
/// Child ID.
/// </summary>
+ [CLSCompliant(false)]
public uint ChildID
{
get { return idChild; }
@@ -248,6 +253,7 @@
/// <summary>
/// The thread that generated this event.
/// </summary>
+ [CLSCompliant(false)]
public uint Thread
{
get { return dwEventThread; }
@@ -256,6 +262,7 @@
/// <summary>
/// Time in milliseconds when the event was generated.
/// </summary>
+ [CLSCompliant(false)]
public uint Time
{
get { return dwmsEventTime; }
Modified: trunk/ManagedWinapi/Accessibility/SystemAccessibleObject.cs
===================================================================
--- trunk/ManagedWinapi/Accessibility/SystemAccessibleObject.cs 2013-07-23 08:17:11 UTC (rev 116)
+++ trunk/ManagedWinapi/Accessibility/SystemAccessibleObject.cs 2013-07-23 08:31:55 UTC (rev 117)
@@ -93,6 +93,7 @@
/// <param name="window">The window</param>
/// <param name="objectID">Which accessibility object to get</param>
/// <returns></returns>
+ [CLSCompliant(false)]
public static SystemAccessibleObject FromWindow(SystemWindow window, AccessibleObjectID objectID)
{
IAccessible iacc = (IAccessible)AccessibleObjectFromWindow(window == null ? IntPtr.Zero : window.HWnd, (uint)objectID, new Guid("{618736E0-3C3D-11CF-810C-00AA00389B71}"));
@@ -641,6 +642,7 @@
/// This enumeration lists all kinds of accessible objects that can
/// be directly assigned to a window.
/// </summary>
+ [CLSCompliant(false)]
public enum AccessibleObjectID : uint
{
/// <summary>
Modified: trunk/ManagedWinapi/Audio/Mixer/Mixer.cs
===================================================================
--- trunk/ManagedWinapi/Audio/Mixer/Mixer.cs 2013-07-23 08:17:11 UTC (rev 116)
+++ trunk/ManagedWinapi/Audio/Mixer/Mixer.cs 2013-07-23 08:31:55 UTC (rev 117)
@@ -35,6 +35,7 @@
/// <summary>
/// Gets the number of available mixers in this system.
/// </summary>
+ [CLSCompliant(false)]
public static uint MixerCount
{
get
@@ -48,6 +49,7 @@
/// </summary>
/// <param name="index">The zero-based index of this mixer.</param>
/// <returns>A reference to this mixer.</returns>
+ [CLSCompliant(false)]
public static Mixer OpenMixer(uint index)
{
if (index < 0 || index > MixerCount)
Modified: trunk/ManagedWinapi/ExtendedFileInfo.cs
===================================================================
--- trunk/ManagedWinapi/ExtendedFileInfo.cs 2013-07-23 08:17:11 UTC (rev 116)
+++ trunk/ManagedWinapi/ExtendedFileInfo.cs 2013-07-23 08:31:55 UTC (rev 117)
@@ -106,6 +106,7 @@
/// Get the size a file requires on disk. This takes NTFS
/// compression into account.
/// </summary>
+ [CLSCompliant(false)]
public static ulong GetPhysicalFileSize(string filename)
{
uint high;
@@ -125,6 +126,7 @@
/// <summary>
/// Get the cluster size for the filesystem that contains the given file.
/// </summary>
+ [CLSCompliant(false)]
public static uint GetClusterSize(string filename)
{
uint sectors, bytes, dummy;
Modified: trunk/ManagedWinapi/Hooks/JournalHook.cs
===================================================================
--- trunk/ManagedWinapi/Hooks/JournalHook.cs 2013-07-23 08:17:11 UTC (rev 116)
+++ trunk/ManagedWinapi/Hooks/JournalHook.cs 2013-07-23 08:31:55 UTC (rev 117)
@@ -117,6 +117,7 @@
/// <summary>
/// Creates a new journal message.
/// </summary>
+ [CLSCompliant(false)]
public JournalMessage(IntPtr hWnd, uint message, uint paramL, uint paramH, uint time)
{
msg = new JournalHook.EVENTMSG();
@@ -135,16 +136,19 @@
/// <summary>
/// The message.
/// </summary>
+ [CLSCompliant(false)]
public uint Message { get { return msg.message; } }
/// <summary>
/// The first parameter of the message.
/// </summary>
+ [CLSCompliant(false)]
public uint ParamL { get { return msg.paramL; } }
/// <summary>
/// The second parameter of the message.
/// </summary>
+ [CLSCompliant(false)]
public uint ParamH { get { return msg.paramH; } }
/// <summary>
Modified: trunk/ManagedWinapi/Hooks/LowLevelHook.cs
===================================================================
--- trunk/ManagedWinapi/Hooks/LowLevelHook.cs 2013-07-23 08:17:11 UTC (rev 116)
+++ trunk/ManagedWinapi/Hooks/LowLevelHook.cs 2013-07-23 08:31:55 UTC (rev 117)
@@ -423,6 +423,7 @@
/// <summary>
/// Mouse event flags needed to replay this message.
/// </summary>
+ [CLSCompliant(false)]
public uint MouseEventFlags
{
get
@@ -534,6 +535,7 @@
/// <summary>
/// Flags needed to replay this event.
/// </summary>
+ [CLSCompliant(false)]
public uint KeyboardEventFlags
{
get
Modified: trunk/ManagedWinapi/KeyboardKey.cs
===================================================================
--- trunk/ManagedWinapi/KeyboardKey.cs 2013-07-23 08:17:11 UTC (rev 116)
+++ trunk/ManagedWinapi/KeyboardKey.cs 2013-07-23 08:31:55 UTC (rev 117)
@@ -123,6 +123,7 @@
/// Inject a keyboard event into the event loop, as if the user performed
/// it with his keyboard.
/// </summary>
+ [CLSCompliant(false)]
public static void InjectKeyboardEvent(Keys key, byte scanCode, uint flags, UIntPtr extraInfo)
{
keybd_event((byte)key, scanCode, flags, extraInfo);
@@ -132,6 +133,7 @@
/// Inject a mouse event into the event loop, as if the user performed
/// it with his mouse.
/// </summary>
+ [CLSCompliant(false)]
public static void InjectMouseEvent(uint flags, uint dx, uint dy, uint data, UIntPtr extraInfo)
{
mouse_event(flags, dx, dy, data, extraInfo);
Modified: trunk/ManagedWinapi/PrivilegedActions.cs
===================================================================
--- trunk/ManagedWinapi/PrivilegedActions.cs 2013-07-23 08:17:11 UTC (rev 116)
+++ trunk/ManagedWinapi/PrivilegedActions.cs 2013-07-23 08:31:55 UTC (rev 117)
@@ -14,6 +14,7 @@
/// <summary>
/// Shutdown the system.
/// </summary>
+ [CLSCompliant(false)]
public static void ShutDown(ShutdownAction action)
{
ShutDown(action, ShutdownForceMode.NoForce);
@@ -22,6 +23,7 @@
/// <summary>
/// Shutdown the system.
/// </summary>
+ [CLSCompliant(false)]
public static void ShutDown(ShutdownAction action, ShutdownForceMode forceMode)
{
ApiHelper.FailIfZero(ExitWindowsEx((uint)action | (uint)forceMode, SHTDN_REASON_FLAG_PLANNED));
@@ -70,6 +72,7 @@
/// <summary>
/// Actions that can be performed at shutdown.
/// </summary>
+ [CLSCompliant(false)]
public enum ShutdownAction : uint
{
/// <summary>
@@ -103,6 +106,7 @@
/// Whether shutdown should be forced if an application cancels it
/// or is hung.
/// </summary>
+ [CLSCompliant(false)]
public enum ShutdownForceMode : uint
{
/// <summary>
Modified: trunk/ManagedWinapi/Properties/AssemblyInfo.cs
===================================================================
--- trunk/ManagedWinapi/Properties/AssemblyInfo.cs 2013-07-23 08:17:11 UTC (rev 116)
+++ trunk/ManagedWinapi/Properties/AssemblyInfo.cs 2013-07-23 08:31:55 UTC (rev 117)
@@ -1,3 +1,4 @@
+using System;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
@@ -33,3 +34,5 @@
// by using the '*' as shown below:
[assembly: AssemblyVersion("0.3.0.3")]
[assembly: AssemblyFileVersion("0.3.0.3")]
+
+[assembly: CLSCompliant(true)]
Modified: trunk/ManagedWinapi/Windows/SystemListView.cs
===================================================================
--- trunk/ManagedWinapi/Windows/SystemListView.cs 2013-07-23 08:17:11 UTC (rev 116)
+++ trunk/ManagedWinapi/Windows/SystemListView.cs 2013-07-23 08:31:55 UTC (rev 117)
@@ -209,6 +209,7 @@
/// <summary>
/// State bits of this item.
/// </summary>
+ [CLSCompliant(false)]
public uint State { get { return state; } }
/// <summary>
Modified: trunk/ManagedWinapi/Windows/SystemWindow.cs
===================================================================
--- trunk/ManagedWinapi/Windows/SystemWindow.cs 2013-07-23 08:17:11 UTC (rev 116)
+++ trunk/ManagedWinapi/Windows/SystemWindow.cs 2013-07-23 08:31:55 UTC (rev 117)
@@ -176,6 +176,7 @@
/// Extended Window Style Flags. The original constants started with WS_EX_.
/// </summary>
/// <seealso cref="SystemWindow.ExtendedStyle"/>
+ [CLSCompliant(false)]
[Flags]
public enum WindowExStyleFlags : uint
{
@@ -637,6 +638,7 @@
/// <summary>
/// This window's extended style flags.
/// </summary>
+ [CLSCompliant(false)]
public WindowExStyleFlags ExtendedStyle
{
get
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|