This question is related to this one.
I need to use the winmm function waveInMessage using the above mentioned constant. I can find a bunch of similar defines (such as DRV_QUERY开发者_如何学JAVADEVICEINTERFACE
) in the mmddk.h, but the pair DRV_QUERYFUNCTIONINSTANCEID
and DRV_QUERYFUNCTIONINSTANCEIDSIZE
is not.
They are mentioned in the MSDN document entitled "Device Roles for Legacy Windows Multimedia Applications", which makes no reference to header files used in the example.
#include <mmddk.h>
What compiler are you using?
- Download the latest Platform SDK for Windows if you're using VC++.
- In case of, e.g MinGW, new headers should be available.
I bet your problem is related to old header files.
精彩评论