Click here to Skip to main content
15,886,857 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
I am trying to install a unsigned driver on win7.the function of the driver is to communicate with usbhid.sys and the device was describe as a hid device。the problem is when I plug the device.only usbhid.sys was installed and functioned。the driver i wrote is not working, i tried lots of times。every time when i plug the device the OS automatically install the usbhid.sys as the driver of the device。anyone know how to solve this?
PS:what i did all is under the diable driver signature mode.so i think signature is not the problem .
PS:I did not say the problem clearly ?please help me ~!
Posted
Updated 4-Jun-11 5:27am
v3

Is the driver working on a Windows Vista or 7 32 bit ?

There are some common pitfalls on 64 bit systems.
20 issues of porting C++ code on the 64-bit platform[^]

Common Visual C++ 64-bit Migration Issues[^]
 
Share this answer
 
Comments
markfilan 6-Jun-11 20:43pm    
the driver is working on 32bits computer.i will check the articles you give me ,thanks very much!
markfilan 7-Jun-11 5:35am    
I solved the problem,it turned out that the inf file had slightly defferences between 64bits computer and 32bits computer.thanks for help.
Kim Togo 7-Jun-11 5:50am    
Good work! :-)
You can enable SetupAPI logging as described in Setting the Event Level for a Text Log to figure out what happened due driver setup
 
Share this answer
 
Comments
markfilan 6-Jun-11 22:55pm    
I used Maessagebox() for installation debugging .and the proccess is ok .so i think the installation should be fine .and tah instalation only did 2thing .
1.copied the inf and sys files to the respective directory .
2.use the updatedriverforplugandplaydevice() to intall the driver even the OS already have one in the system.
I belive the installation is fine,but now the OS did not use the driver i intsalled instead the OS install the HID driver for the device .i don't konw why ,and everytime i tried to install the driver i wrote for the device ,the OS give me the message that"Windows has determined the driver softwarefor your devbice is up to date."i didn't know where is the problem.
markfilan 7-Jun-11 5:35am    
I solved the problem,it turned out that the inf file had slightly defferences between 64bits computer and 32bits computer.thanks for help.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900