get midi devices

sde said:
can someone put me on the right track on where to look around to retrieve a list of midi devices?

Well Im not lying if I tell you to use these API- functions...

Private Declare Function midiOutGetNumDevs Lib "winmm.dll" () As Integer
Private Declare Function midiOutGetDevCaps Lib "winmm.dll" (ByVal DevNum As Integer, ByRef DevCaps As MIDIOUTCAPS, ByVal SizeOfStruc As Integer) As Integer

I guess...
 
Last edited by a moderator:
thank you .. i saw a similar example in vb, but c# syntax seems to be completely different and i cant find an example in c#. i hate to ask, but i dont suppose you would know?

the import looks something like this:
[DllImport("Winmm.dll")]
but in the vb examples, you and the other example i found are defining the dll in the function declaration. .. soo confused, but thanks for your time.
 
[DllImport("Winmm.dll")]
public static extern int midiOutGetNumDevs();

that is it, thanks! now i have something to go on =)
 


Write your reply...
Back
Top