[wdmaudiodev] Re: Developing a "simple" user mode installable MIDI driver.

  • From: "Chris Hubbard" <chris@xxxxxxxxxxxxxxxxx>
  • To: <wdmaudiodev@xxxxxxxxxxxxx>
  • Date: Wed, 13 Jun 2018 13:28:42 +1000

Hi All,

My driver now seems to working quite nicely, but I have noticed the following:

Whenever any MIDI based application starts, calls are made to DriverProc for "load", "enable" and "open".

However, no calls ever seem to be made to DriverProc for "close", "disable" or "unload".

In other words, once started, the driver stays there until the next reboot.

Is this normal?

Kind Regards,
Chris Hubbard,
CH Sound Design.
www.chsounddesign.com

Sent from my abacus.

-----Original Message----- From: Tim Roberts
Sent: Wednesday, May 30, 2018 3:39 AM
To: wdmaudiodev@xxxxxxxxxxxxx
Subject: [wdmaudiodev] Re: Developing a "simple" user mode installable MIDI driver.

Chris Hubbard wrote:


I'm making good progress, although I've found an interesting anomaly:

My application calls midiOutGetDevCaps with a pointer to
midiOutGetDevCapsA (8 bit ANSI characters). However the driver seems
to receive a pointer to midiOutGetDevCapsW (16 bit characters).
Any idea why this would be the case?

All of Windows is like that, although not everyone realizes it.  All
Windows APIs work natively in Unicode.  The ANSI variants simply
translate the strings to Unicode and call the Unicode API to do the
work.  In this case, it is winmm.dll that does the translation and then
calls your DLL, which will see exclusively Unicode.

--
Tim Roberts, timr@xxxxxxxxx
Providenza & Boekelheide, Inc.

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

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: