示例#1
0
        static void Main(string[] args)
        {
            MIDIOUTCAPS OutCaps = new MIDIOUTCAPS();
            int         NumDevs = WinMM.midiOutGetNumDevs();

            for (uint i = 0; i < NumDevs; i++)
            {
                WinMM.midiOutGetDevCaps(i, out OutCaps, (uint)Marshal.SizeOf(OutCaps));
                Console.WriteLine(OutCaps.szPname);
            }
        }
示例#2
0
 internal static extern int midiOutGetDevCaps(
     uint uDeviceID,
     out MIDIOUTCAPS caps,
     uint cbMidiOutCaps);