Hi all,

Does anyone know if I can get the path to a device driver's INF file in the
driver store by just knowing its Device ID?
I've been poking around in the SetupDi API and am not sure if I'm seeing
something usualable for this.


Thanks,
-MH

Re: Can I get the driver's INF file path from its Device ID? by Eliyas

Eliyas
Wed Sep 13 09:24:04 CDT 2006

I think you can. I haven't verified to see if the technique demonstrated in
the toastpkg sample works with driver store, but I'm confident that it will.

Follow the second posting in this thread.

http://groups.google.com/group/microsoft.public.development.device.drivers/browse_frm/thread/81225942655b3fca/d785459e27babf46?lnk=st&q=Eliyas+Original+source+media+path+INF&rnum=1#d785459e27babf46


Let us know if that works.

-Eliyas



Re: Can I get the driver's INF file path from its Device ID? by Pavel

Pavel
Tue Sep 12 20:52:18 CDT 2006


"Michael" <mhugh@domain.com> wrote in message news:uGTvxMs1GHA.3476@TK2MSFTNGP04.phx.gbl...
> Hi all,
>
> Does anyone know if I can get the path to a device driver's INF file in the driver store by just knowing its Device ID?
> I've been poking around in the SetupDi API and am not sure if I'm seeing something usualable for this.
>
>
> Thanks,
> -MH
>
>
>



Re: Can I get the driver's INF file path from its Device ID? by Khamsing

Khamsing
Sat Sep 16 16:45:31 CDT 2006


"Pavel A." <pavel_a@NOwritemeNO.com> wrote in message
news:eQBauiX2GHA.1040@TK2MSFTNGP06.phx.gbl...
>
> "Michael" <mhugh@domain.com> wrote in message
> news:uGTvxMs1GHA.3476@TK2MSFTNGP04.phx.gbl...
>> Hi all,
>>
>> Does anyone know if I can get the path to a device driver's INF file in
>> the driver store by just knowing its Device ID?
>> I've been poking around in the SetupDi API and am not sure if I'm seeing
>> something usualable for this.
>>
>>
>> Thanks,
>> -MH

An installed INF file does changed into a new name under oemxx.INF, so why
you would want to do that programmatically? It's probably unreliable,
because there could be several oemxxx.inf files, how are you going to sort
thru and figure out which one is matching with the one currently installed.
I supposed you could do that but you will spend so much times doing this.
Why not doing it manually?

-Khamsing



Re: Can I get the driver's INF file path from its Device ID? by Maxim

Maxim
Sun Sep 17 04:25:46 CDT 2006

> An installed INF file does changed into a new name under oemxx.INF

...for non-WHQLed drivers only.

--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
maxim@storagecraft.com
http://www.storagecraft.com


Re: Can I get the driver's INF file path from its Device ID? by Khamsing

Khamsing
Mon Sep 18 00:25:24 CDT 2006


"Maxim S. Shatskih" <maxim@storagecraft.com> wrote in message
news:%23iA27sj2GHA.4764@TK2MSFTNGP05.phx.gbl...
>> An installed INF file does changed into a new name under oemxx.INF
>
> ...for non-WHQLed drivers only.
>
> --
> Maxim Shatskih, Windows DDK MVP
> StorageCraft Corporation
> maxim@storagecraft.com
> http://www.storagecraft.com
>

Not necessarily, anything that is not supplied by Microsoft CD will be
renamed to OEMxxxx.INF, I just checked another WHQL qualified driver from
Lexmark. It's being renamed.

-Khamsing




Re: Can I get the driver's INF file path from its Device ID? by Michael

Michael
Tue Sep 19 17:11:54 CDT 2006


*"Khamsing" <Vn@nooneknows.com> wrote in message
news:450c3e66_2@newsfeed.slurp.net...
*
* "Pavel A." <pavel_a@NOwritemeNO.com> wrote in message
* news:eQBauiX2GHA.1040@TK2MSFTNGP06.phx.gbl...
**
** "Michael" <mhugh@domain.com> wrote in message
** news:uGTvxMs1GHA.3476@TK2MSFTNGP04.phx.gbl...
*** Hi all,
***
*** Does anyone know if I can get the path to a device driver's INF file in
*** the driver store by just knowing its Device ID?
*** I've been poking around in the SetupDi API and am not sure if I'm seeing
*** something usualable for this.
***
***
*** Thanks,
*** -MH
*
* An installed INF file does changed into a new name under oemxx.INF, so
why
* you would want to do that programmatically? It's probably unreliable,
* because there could be several oemxxx.inf files, how are you going to sort
* thru and figure out which one is matching with the one currently
installed.
* I supposed you could do that but you will spend so much times doing this.
* Why not doing it manually?
*
* -Khamsing
*
*


Attaining the fully qualified path for a device driver's INF seems to be
attainable via the SetupDi API function SetupDiSetSelectedDevice.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/DevInst_r/hh/DevInst_r/di-rtns_5a2fb98d-54ee-4290-9969-f5e12d77cbcf.xml.asp

Currently, I'm struggling to call SetupDiGetSelectedDriver function with the
proper arguments.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/DevInst_r/hh/DevInst_r/di-rtns_5a2fb98d-54ee-4290-9969-f5e12d77cbcf.xml.asp


My problem seems to reside in my PInvoke implementation of the
PSP_DRVINFO_DATA structure.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/DevInst_r/hh/DevInst_r/di-struct_738a1fa5-729a-4464-af75-05591d68eef7.xml.asp


I'll start a separate thread for this issue.