Dear Team,
There is a situation where I need to prevent the Windows OS from loading the default Hid mini driver and load the custom one when the device is attached.
I guess that one can achieve this by copying the corresponding INF file and sys files in the respective folders before attaching the device so that Windows loads the INF specified driver after enumerating the device. Correct me if I am wrong.
Regards.
Yes, you need to preinstall your driver package before the device is plugged in.
d
-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@gmail.com
Sent: Wednesday, October 03, 2007 8:29 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] Preventing Windows from loading default Hid Driver
Dear Team,
There is a situation where I need to prevent the Windows OS from loading the default Hid mini driver and load the custom one when the device is attached.
I guess that one can achieve this by copying the corresponding INF file and sys files in the respective folders before attaching the device so that Windows loads the INF specified driver after enumerating the device. Correct me if I am wrong.
Regards.
NTDEV is sponsored by OSR
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer
Uday Bhaskar wrote:
There is a situation where I need to prevent the Windows OS
from loading the default Hid mini driver and load the custom
one when the device is attached.
I guess that one can achieve this by copying the corresponding
INF file and sys files in the respective folders before attaching
the device so that Windows loads the INF specified driver after
enumerating the device.
There are API’s for preinstalling drivers – “copying” INF and SYS files is not the correct way to go at all.
Also, your driver package will need to be WHQL certified…
Thanks for those clarifications. I guess Chris is referring to Driver Install Frameworks API (DIFxAPI) calls. eg: DriverPackageInstall
Currently the development is in initial stages and the driver package is not created. Before starting from the given Hid sample, I wanted to confirm whether I am moving in correct direction or not.
Once the purpose is solved and the driver package is created, I will use DIFxAPI only for preinstalling rather than manually copying INF and SYS files.
Regards.