How to launch the user mode application(dll, exe) from kernel mode

Hello Sir,

I have a WDM MIDI port device driver that should be able to start a user
mode application upon the MIDI port device is selected as a MIDI playback
device.(i.e the system starts the driver).
So far I have not find a way to implement this function and I have tried a
sample program called AutoLaunch from “Programming Microsoft Windows Driver
Model” book written by Walter Oney. However, the sample is not WDM audio
miniport driver which has different way to create device
object.(IoCreateDevice is not used in my case).
I have tried to serveral ways to implement the feature based on the sample
code but none of them work! So, I guess I am still not very clear about the
WDM driver. Here I have some of doubts that hope you help me:

  1. I was wondering if I should use IoRegisterDeviceInterface to get the
    interface registered because I used PcRegisterSubDevice API to register a
    mini port device.

  2. In my mini port driver I have used another interface called MiniportMidi
    interface create the new mini port, Will there be any problem if I create
    aonther Functional Interface and use IoRegisterDeviceInterface to register
    it and use it to trigger a user mode service application just like the
    sample code did.

  3. Or the sample code does not work on my case at all?

  4. Is there any way to implement this feature other than the sample code
    given in the Walter Oney’s book?

Any suggestion and help are appreciated and thanks alot!

Rgds!
Eric


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com