DebuggingDeclarations.cs
author sl
Wed, 14 May 2014 07:53:47 +0200
changeset 1 29c8c6738077
permissions -rw-r--r--
Disabling signing to fix our build.
     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 }