Instead of jamming the registry, write an .inf and install your driver that
way. Specify your USB\VID_0D18&PID_1004 match in the .inf and let Pnp do the
work of installing your service.
From: 若水<mailto:shlikewater@xxxxxxxxx>
Sent: Friday, May 13, 2016 4:14 AM
To: wdmaudiodev@xxxxxxxxxxxxx<mailto:wdmaudiodev@xxxxxxxxxxxxx>
Subject: [wdmaudiodev] audio device can not be found
Hello,
I am a newer in WDM Audio driver development. I developed a wdm audio driver
for an USB audio for Win7 or later system. I cannot use usbaudio driver,
because I must add asio function in my driver. Now, I am debugging my driver.
The problem is that the driver cannot be found. The following is details.
1 If I plug in my device firstly in a computer, the win7 will use usbaudio
driver to my device.
2 I have not program the installer, so, I modified the registry by using
regedit. I add a service in HKLM\SYSTEM\CurrentControlSet\service\MyAudio.
Then, I modified the
HKLM\SYSTEM\CurrentControlSet\Enum\USB\VID_0D18&PID1004&MI_00\8&27af1e98&0&0000\Service\MyAudio
3 copy my driver to system32\drivers
4 plug in the device and test
5 The device can be found at "device manager", please refer to the device.png
6 The device can NOT be found at "sound", please refer to the sound.png.
By the way, I can use SetupDi function to find my device to get device path,
it is OK. And CreateFile is OK by using the device path. But I can NOT use
waveOutOpen function to Open my device. The return code is MMSYSERR_BADDEVICEID.
Could you help me to solve the problem? Thanks.
Best Regards,
Shang Jing