Type a page name and press Enter. You'll jump to the page if it exists, or you can create it if it doesn't.
To create a page in a module other than winmm, prefix the name with the module name and a period.
[StructLayout(LayoutKind.Sequential)]
struct MIDIOUTCAPS
{
public ushort wMid;
public ushort wPid;
public uint vDriverVersion;
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 32)]
public string szPname;
public ushort wTechnology;
public ushort wVoices;
public ushort wNotes;
public ushort wChannelMask;
public uint dwSupport;
}
for (int x = 0; x < outDevs; x++)
{
MIDIOUTCAPS caps = new MIDIOUTCAPS();
midiOutGetDevCaps((UIntPtr) x, out caps, (uint)Marshal.SizeOf(typeof(MIDIOUTCAPS)));
//Do whatever you want with the caps object here
MessageBox.Show(caps.szPname);
}
}
The MIDIOUTCAPS structure describes the capabilities of a MIDI output device.
3/2/2016 9:50:47 AM - -64.140.239.91
Enumeration for the MMRESULT possible values in winmm.dll
7/21/2010 3:53:56 PM - -65.122.179.242
Please edit this page!
Do you have...
helpful tips or sample code to share for using this API in managed code?
corrections to the existing content?
variations of the signature you want to share?
additional languages you want to include?
Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing supporting types needed for this API (structures, delegates, and more).