Sign in with Microsoft
Sign in or create an account.
Select a different account.
You have multiple accounts
Choose the account you want to sign in with.


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


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


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


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

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

Need more help?

Want more options?

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.

Was this information helpful?

What affected your experience?
By pressing submit, your feedback will be used to improve Microsoft products and services. Your IT admin will be able to collect this data. Privacy Statement.

Thank you for your feedback!