I cannot get the second device installed on a multifunction device.
The adaptor can be configured as a single device or a dual-device. The
second device is exactly the same type of device as the primary
device.
I am converting this driver from NT to WDM. I know WDF is probably
better but I familiar with WDM and I don't have the time to learn it.
In NT the driver works find. During the DriverEntry when the firmware
is loaed, the driver checks to see if the dual device is installed
(daughter board). if it is, the driver simply create the device for
the dual device (IoCreateDevice) and gets its resources
(baddr0/baddr1) from the primary channel (baddr3/baddr4) and conects
the same interrupt (IoConnectInterrupt). Everything works find.
However, in WDM it doesn't work that way.
During the start device phase, the driver will load the firmware and
then read a register on the primary device to determine if the
secondary device has been installed. if it has, the driver will then
create the device (IoCreateDevice()).
I used the sample in Walter Oney book, "Programming the Microsoft
Windows Driver Model" 2nd edition.
I only have one inf because the dual device woks exactly like the
primary device. However, I just can't seem to get the dual deivce
installed.
When I run this program that check for installed devices, only one
device is listed. I was hoping to see two. The Device Manager only
displays 1 device.
Now, I am using the Device Manager to Enable the primary driver,
which runs the Start Device phase of the primary channel instead of
installing the device from scratch. Can I do this?
John
>> Stay informed about: Problems install multifunction device