Problems loading my WDM driver in Vista RC2

J

john

I am still having problems loading my driver in VISTA.

I have managed using, "Safe Mode" to disable my driver in the Device
Manager and then restart Vista. I go back into the Device Manager and
enable my driver. I see that the device LED lights up, which means
that the driver has loaded the firmware. However, I get no response
from the Device Manager (the circle is still going round and round). I
try to load an app and it says there are not devices installed.

When I reboot Vista, I have to start it in safe mode to disable the
driver. Otherwise, Vista appears to be hang up when my driver gets
loaded.

This driver was build using Windows 2000 and works just find in
Windows 2000/xp.

The driver controls a special interface device used for military
applications. The only thing I can think of is that I do name the
device when I call IoCreateDevice. Is that a problem in Vista.

I really don't know what is going on. Has anybody out there had a
problem with their WDM driver in Vista?

Is there any changes I must do in the INF file?

John
 
J

john

I am still having problems loading my driver in VISTA.

I have managed using, "Safe Mode" to disable my driver in the Device
Manager and then restart Vista. I go back into the Device Manager and
enable my driver. I see that the device LED lights up, which means
that the driver has loaded the firmware. However, I get no response
from the Device Manager (the circle is still going round and round). I
try to load an app and it says there are not devices installed.

When I reboot Vista, I have to start it in safe mode to disable the
driver. Otherwise, Vista appears to be hang up when my driver gets
loaded.

This driver was build using Windows 2000 and works just find in
Windows 2000/xp.

The driver controls a special interface device used for military
applications. The only thing I can think of is that I do name the
device when I call IoCreateDevice. Is that a problem in Vista.

I really don't know what is going on. Has anybody out there had a
problem with their WDM driver in Vista?

Is there any changes I must do in the INF file?

John


UPDATE:

Using windbg, I did
!devnode drivernode

I got stuff plus
ServiceName is MyDriver
State = DeviceNodeStartPending

The flags line had this
Flags (0x000000f0) DNF_ENUMERATED, DNF_IDS_QUERIED,
DNF_HAS_BOOT_CONFIG,DNF_BOOT_CONFIG_RESERVED

What does this mean? If I'm reading this right, the Device is Pending
in the PNP_START_DEVICE. I can see from the debg print statements that
I'm returning to Vista with a status of zero.

Can somebody please help me? Point me in the right direction. This
driver does work in Windows XP.
 
D

Doron Holan [MS]

did you complete teh start irp as well as return STATUS_SUCCESS (you should
actually return with the value of StartIrp->IoStatus.Status otherwise driver
verifier will complain)?

d
 
J

john

did you complete teh start irp as well as return STATUS_SUCCESS (you should
actually return with the value of StartIrp->IoStatus.Status otherwise driver
verifier will complain)?

d

Yes I did. I verified that I was returning STATUS_SUCCESS in the
STartIrp->IoStatus.Status.

I must be doing something wrong where in XP it works but Vista it
doesn't.

Any other ideas?

John
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top