/// <summary> /// Fills in the capabilities struct for a specific output device. /// </summary> /// NOTE: This is adapted from the original Win32 function in order to make it typesafe. /// /// Win32 docs: http://msdn.microsoft.com/en-us/library/ms711621(VS.85).aspx public static MMRESULT midiOutGetDevCaps(UIntPtr uDeviceId, out MidiOutCaps caps) { return(midiOutGetDevCaps(uDeviceId, out caps, (uint)Marshal.SizeOf(typeof(MidiOutCaps)))); }
private static extern MMRESULT midiOutGetDevCaps(UIntPtr uDeviceId, out MidiOutCaps caps, uint cbMidiOutCaps);