Well it certainly would not be in DriverEntry since for a hardware driver it
has not been told yet that there are devices. In AddDevice you can use
IoGetDeviceProperty to get information about the specific device.
I can’t think of any samples for this, because this type of design becomes
very messy. Basically for most service routines you need to have code to
test the device type and then perform the specific device related
operations.
What is the set of devices you feel would be better with a single driver?
There used to be more of these drivers for Windows, I know I replaced a few
with individual drivers for each device, for clients who got sick and tired
of the maintenance headaches.
Don Burn
Windows Filesystem and Driver Consulting
Website: http://www.windrvr.com
Blog: http://msmvps.com/blogs/WinDrvr
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of
xxxxx@gmail.com
Sent: Wednesday, May 14, 2014 8:30 AM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] Multiple Device Support
Hello Maxim,
Thanks for the quick reply.
How the driver will identify the instance/device for which the driver_entry
is invoked?
I think one has to read the registry parameters using the DriverObject
provided during the driver_entry call, right? but I don’t understand how
this is achieved through the INF file.
Can you give some information regarding this or point me to some WDK example
or other example where this might be already done?
Thanks and Regards,
Gaurav
NTDEV is sponsored by OSR
Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev
OSR is HIRING!! See http://www.osr.com/careers
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