sl@0: using System; sl@0: using System.Runtime.InteropServices; sl@0: sl@0: namespace GenericHid sl@0: { sl@0: /// sl@0: /// Win32 API declarations for Debug.Write statements. sl@0: /// sl@0: /// sl@0: internal sealed partial class Debugging sl@0: { sl@0: internal static class NativeMethods sl@0: { sl@0: internal const Int16 FormatMessageFromSystem = 0X1000; sl@0: sl@0: [DllImport("kernel32.dll", CharSet = CharSet.Auto, SetLastError = true)] sl@0: internal static extern Int32 FormatMessage(Int32 dwFlags, ref Int64 lpSource, Int32 dwMessageId, Int32 dwLanguageZId, sl@0: String lpBuffer, Int32 nSize, Int32 arguments); sl@0: } sl@0: } sl@0: }