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

  • From: Tim Roberts <timr@xxxxxxxxx>
  • To: wdmaudiodev@xxxxxxxxxxxxx
  • Date: Tue, 29 May 2018 10:39:12 -0700

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/

Other related posts: