DebuggingDeclarations.cs
author StephaneLenclud
Wed, 11 Feb 2015 15:52:53 +0100
changeset 7 5680e56e9b0b
permissions -rw-r--r--
Left over fixes :)
     1 using System;
     2 using System.Runtime.InteropServices; 
     3 
     4 namespace GenericHid
     5 {   
     6 	/// <summary>
     7 	/// Win32 API declarations for Debug.Write statements.
     8 	/// </summary>
     9 	/// 
    10     internal sealed partial class Debugging  
    11     {
    12 		internal static class NativeMethods
    13 		{
    14 			internal const Int16 FormatMessageFromSystem = 0X1000;
    15 
    16 			[DllImport("kernel32.dll", CharSet = CharSet.Auto, SetLastError = true)]
    17 			internal static extern Int32 FormatMessage(Int32 dwFlags, ref Int64 lpSource, Int32 dwMessageId, Int32 dwLanguageZId,
    18 			                                           String lpBuffer, Int32 nSize, Int32 arguments);
    19 		}
    20     } 
    21 }