Hi all,
I want to find out the name of the driver file being loaded when I plug in
an USB drive. How can I do it? Either a user mode or a kernel mode solution
would do.
Thanks
–
- amitr0
Hi all,
I want to find out the name of the driver file being loaded when I plug in
an USB drive. How can I do it? Either a user mode or a kernel mode solution
would do.
Thanks
–
should be in driver details in device manager.
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of amitr0
Sent: Thursday, March 23, 2006 1:56 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] Finding the name of the driver being loaded
Hi all,
I want to find out the name of the driver file being loaded when I plug
in an USB drive. How can I do it? Either a user mode or a kernel mode
solution would do.
Thanks
–
now now, do you really think i would post this question here to get such an
answer. I need a programmatic solution, may be an API…
Amitr0,
I don’t have an answer for you, but perhaps your should investivate the
UM api RegisterDeviceNotification. Perhaps you can somehow translate
it’s returned
values to something useful.
I guess the first step is detecting when there is a device event (plug
in/unplug). I don’t know if this will help at all, but good luck.
M
amitr0 wrote:
Hi all,
I want to find out the name of the driver file being loaded when I
plug in an USB drive. How can I do it? Either a user mode or a kernel
mode solution would do.Thanks
–
- amitr0 — Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256 To unsubscribe, visit the
List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer
hey matt,
thanks for the que pal, but I really am in at a loss to find this out, on
the other hand the task doesnt look too complex, does it? Have you read my
other post, about teh pnp module, iswhat i say correct? then there must be
someplace where this nformation is placed.
amitr0
amitr0,
I’m a little busy here, but I searched around and found this link. It
described the PNP thing like you did in your other post and in
discusses a little about doing what you want (getting driver name, that
is, if I read it correctly - I just skimmed threw it super fast).
A little beyond half way down the page there is a little info you might
be interested in. Search the article for “*5.4.1.3
getFriendlyDeviceName” . *The link is:
http://72.14.203.104/search?q=cache:Iy2gLrBGtycJ:www.steelbrothers.ch/jusb/api/usb/windows/related-docs/chp5-designjusbwindows.pdf+RegisterDeviceNotification+“driver+name”&hl=en&gl=us&ct=clnk&cd=1
matt
amitr0 wrote:
hey matt,
thanks for the que pal, but I really am in at a loss to find this out,
on the other hand the task doesnt look too complex, does it? Have you
read my other post, about teh pnp module, iswhat i say correct? then
there must be someplace where this nformation is placed.amitr0
— Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256 To unsubscribe, visit the
List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer
okay lemme chek matt…thanks though…
Look at the SetupDi functions documented in the DDK. These are the functions that device manager builds on. They will allow you to enumerate all devices in the system and to retrieve parameters like the “service” (i.e. driver) running the device.
-p
From: xxxxx@lists.osr.com on behalf of amitr0
Sent: Thu 3/23/2006 3:09 AM
To: Windows System Software Devs Interest List
Subject: Re: [ntdev] Finding the name of the driver being loaded
now now, do you really think i would post this question here to get such an answer. I need a programmatic solution, may be an API…
— Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256 To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer
You could also try reading the documentation on PNP in the DDK. You have looked for this information in the DDK already, right?
-p
From: xxxxx@lists.osr.com on behalf of MM
Sent: Thu 3/23/2006 3:59 AM
To: Windows System Software Devs Interest List
Subject: Re: [ntdev] Finding the name of the driver being loaded
amitr0,
I’m a little busy here, but I searched around and found this link. It
described the PNP thing like you did in your other post and in
discusses a little about doing what you want (getting driver name, that
is, if I read it correctly - I just skimmed threw it super fast).
A little beyond half way down the page there is a little info you might
be interested in. Search the article for “*5.4.1.3
getFriendlyDeviceName” . *The link is:
http://72.14.203.104/search?q=cache:Iy2gLrBGtycJ:www.steelbrothers.ch/jusb/api/usb/windows/related-docs/chp5-designjusbwindows.pdf+RegisterDeviceNotification+“driver+name”&hl=en&gl=us&ct=clnk&cd=1
matt
amitr0 wrote:
hey matt,
thanks for the que pal, but I really am in at a loss to find this out,
on the other hand the task doesnt look too complex, does it? Have you
read my other post, about teh pnp module, iswhat i say correct? then
there must be someplace where this nformation is placed.amitr0
— Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256 To unsubscribe, visit the
List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer
Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256
To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer
Hello everybody,
Thanks for all the replies. I will check up these things, and post any
further questions after that.
Best Regards,
amitr0
Amazingly enough, by looking in the DDK you can find a function named
for the functionality you want. SetupDiBuildDriverInfoList appears to
be the winner here. Looks like there are different flags you can use to
build the list to your liking.
d
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of amitr0
Sent: Thursday, March 23, 2006 3:10 AM
To: Windows System Software Devs Interest List
Subject: Re: [ntdev] Finding the name of the driver being loaded
now now, do you really think i would post this question here to get such
an answer. I need a programmatic solution, may be an API…
— Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256 To unsubscribe, visit the
List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer
“amitr0” wrote in message news:xxxxx@ntdev…
>Hi all,
>
>I want to find out the name of the driver file being loaded when I plug in
>an USB drive. How can I do it? Either a user mode or a kernel mode solution
>would do.
The answer of Peter Wieland (use SetupDi )
will help you to find the executable of the driver’s service.
However remember that device stack can consist of several drivers, all of them actually are
drivers for the device.
–PA