public static MidiInCapabilities DeviceInfo(int midiInDeviceNumber) { MidiInCapabilities midiInCapabilities = default(MidiInCapabilities); int size = Marshal.SizeOf(midiInCapabilities); MmException.Try(MidiInterop.midiInGetDevCaps((IntPtr)midiInDeviceNumber, out midiInCapabilities, size), "midiInGetDevCaps"); return(midiInCapabilities); }
public static extern MmResult midiInGetDevCaps(IntPtr deviceId, out MidiInCapabilities capabilities, int size);