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

  • From: "Chris Hubbard" <chris@xxxxxxxxxxxxxxxxx>
  • To: <wdmaudiodev@xxxxxxxxxxxxx>
  • Date: Thu, 31 May 2018 08:36:03 +1000

Hi Tim,

Thank you for the explanation.

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: