[wdmaudiodev] Re: Naming multiple MIDI miniports

  • From: "BobF" <rfreeze@xxxxxxxxxxxxxx>
  • To: <wdmaudiodev@xxxxxxxxxxxxx>
  • Date: Mon, 12 Mar 2007 07:24:56 -0500

This is how I do it for a four port virtual midi driver:

        // Start the UART miniport.
        //
        ntStatus = InstallSubdevice(
                                    pDeviceObject,
                                    pIrp,
                                    L"VMpuA",
                                    CLSID_PortMidi,
                                    CLSID_MiniportDriverUart,
                                    NULL,
                                    ResourceList,
                                    IID_IPortMidi,
                                    NULL,
                                    NULL  
                                    );
        ntStatus = InstallSubdevice(
                                    pDeviceObject,
                                    pIrp,
                                    L"VMpuB",
                                    CLSID_PortMidi,
                                    CLSID_MiniportDriverUart,
                                    NULL,
                                    ResourceList,
                                    IID_IPortMidi,
                                    NULL,
                                    NULL  
                                    );
        ntStatus = InstallSubdevice(
                                    pDeviceObject,
                                    pIrp,
                                    L"VMpuC",
                                    CLSID_PortMidi,
                                    CLSID_MiniportDriverUart,
                                    NULL,
                                    ResourceList,
                                    IID_IPortMidi,
                                    NULL,
                                    NULL  
                                    );
        ntStatus = InstallSubdevice(
                                    pDeviceObject,
                                    pIrp,
                                    L"VMpuD",
                                    CLSID_PortMidi,
                                    CLSID_MiniportDriverUart,
                                    NULL,
                                    ResourceList,
                                    IID_IPortMidi,
                                    NULL,
                                    NULL  
                                    );      

-----Original Message-----
From: wdmaudiodev-bounce@xxxxxxxxxxxxx
[mailto:wdmaudiodev-bounce@xxxxxxxxxxxxx] On Behalf Of Dominik Lübbers
Sent: Monday, March 12, 2007 5:14 AM
To: wdmaudiodev@xxxxxxxxxxxxx
Subject: [wdmaudiodev] Naming multiple MIDI miniports

I have successfully written a small MidiBridge (a kind of virtual Midi
interface driver that allows me to establish a communication path between a
Midi host and my own application). I would like to extend the number of MIDI
ports that are offered by the driver.
What is the easiest way to achieve this?
1. Changing the topology (maybe multiple pins? Do I need additional
Synth-Nodes?)
2. Increasing the number of instantiated miniports?

Besides these alternatives: How do I give distinct names to the offered midi
interfaces? For now, I name it in the FriendlyName-section of my INF-file

Thanks for any help,
Dominik

******************

WDMAUDIODEV addresses:
Post message: mailto:wdmaudiodev@xxxxxxxxxxxxx
Subscribe:    mailto:wdmaudiodev-request@xxxxxxxxxxxxx?subject=subscribe
Unsubscribe:  mailto:wdmaudiodev-request@xxxxxxxxxxxxx?subject=unsubscribe
Moderator:    mailto:wdmaudiodev-moderators@xxxxxxxxxxxxx

URL to WDMAUDIODEV page:
http://www.wdmaudiodev.com/


******************

WDMAUDIODEV addresses:
Post message: mailto:wdmaudiodev@xxxxxxxxxxxxx
Subscribe:    mailto:wdmaudiodev-request@xxxxxxxxxxxxx?subject=subscribe
Unsubscribe:  mailto:wdmaudiodev-request@xxxxxxxxxxxxx?subject=unsubscribe
Moderator:    mailto:wdmaudiodev-moderators@xxxxxxxxxxxxx

URL to WDMAUDIODEV page:
http://www.wdmaudiodev.com/

Other related posts: