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.
sl@0
     1
using System;
sl@0
     2
using System.Runtime.InteropServices; 
sl@0
     3
sl@0
     4
namespace GenericHid
sl@0
     5
{   
sl@0
     6
	/// <summary>
sl@0
     7
	/// Win32 API declarations for Debug.Write statements.
sl@0
     8
	/// </summary>
sl@0
     9
	/// 
sl@0
    10
    internal sealed partial class Debugging  
sl@0
    11
    {
sl@0
    12
		internal static class NativeMethods
sl@0
    13
		{
sl@0
    14
			internal const Int16 FormatMessageFromSystem = 0X1000;
sl@0
    15
sl@0
    16
			[DllImport("kernel32.dll", CharSet = CharSet.Auto, SetLastError = true)]
sl@0
    17
			internal static extern Int32 FormatMessage(Int32 dwFlags, ref Int64 lpSource, Int32 dwMessageId, Int32 dwLanguageZId,
sl@0
    18
			                                           String lpBuffer, Int32 nSize, Int32 arguments);
sl@0
    19
		}
sl@0
    20
    } 
sl@0
    21
}