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.