Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

"midiInGetNumDevs" function returns incorrect number of MIDI input devices in Windows 8


View products that this article applies to.

Symptoms

Consider the following scenario:
  • You develop an application that uses the midiInGetNumDevs function to retrieve the number of connected MIDI input devices.
  • You run the application on a Windows 8-based computer.
  • You insert a universal serial bus (USB) MIDI device, and then you let the application call the midiInGetNumDevs function.
  • You remove the USB MIDI device.
  • You let the application call the midiInGetNumDevs function again.
In this scenario, the midiInGetNumDevs function returns the previous number of connected MIDI input devices. 

Note The following functions may also behave incorrectly in Windows 8:
  • midiInGetDevCaps
  • midiInGetNumDevs
  • midiInMessage
  • midiInOpen
  • midiInPrepareHeader
  • midiInReset
  • midiInStart
  • midiInStop
  • midiInUnprepareHeader

↑ Back to the top


Cause

This issue occurs because disconnected devices are incorrectly enumerated when the functions are called.

↑ Back to the top


Resolution

Update information

To resolve this issue, install update rollup 2862768. For more information about how to obtain this update rollup package, click the following article number to view the article in the Microsoft Knowledge Base:
2862768 Windows RT, Windows 8, and Windows Server 2012 update rollup: August 2013

↑ Back to the top


Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

↑ Back to the top


More Information

For more information about software update terminology, click the following article number to view the article in the Microsoft Knowledge Base:
824684 Description of the standard terminology that is used to describe Microsoft software updates

↑ Back to the top


Keywords: kbqfe, kbhotfixserver, kbfix, kbexpertiseadvanced, kbsurveynew, kb

↑ Back to the top

Article Info
Article ID : 2862818
Revision : 1
Created on : 1/7/2017
Published on : 8/13/2013
Exists online : False
Views : 176