using System; using System.Collections.Generic; using System.Text; using System.Runtime.InteropServices; namespace NAudio.Midi { /// /// MIDI In Device Capabilities /// [StructLayout(LayoutKind.Sequential , CharSet = CharSet.Auto )] public struct MidiInCapabilities { /// /// wMid /// UInt16 manufacturerId; /// /// wPid /// UInt16 productId; /// /// vDriverVersion /// UInt32 driverVersion; /// /// Product Name /// [MarshalAs(UnmanagedType.ByValTStr, SizeConst = MaxProductNameLength)] string productName; /// /// Support - Reserved /// Int32 support; private const int MaxProductNameLength = 32; /// /// Gets the manufacturer of this device /// public Manufacturers Manufacturer { get { return (Manufacturers)manufacturerId; } } /// /// Gets the product identifier (manufacturer specific) /// public int ProductId { get { return productId; } } /// /// Gets the product name /// public string ProductName { get { return productName; } } } }