I need to parse a custom .inf file in my driver. I used to use the
SetupNNN functions ( like the SetupOpenInfFile() etc ) in my user mode
programming. Is there a similar set of kernel mode API’s to load and parse
an .INF file ? { or do I need to do my own parsing ? }
I do see a setupapi.lib in my DDK lib directory. Is that only for
user mode programming ( like a properties page of a driver etc ) ?
I need to parse a custom .inf file in my driver. I used to use the
SetupNNN functions ( like the SetupOpenInfFile() etc ) in my user mode
programming. Is there a similar set of kernel mode API’s to load and parse
an .INF file ? { or do I need to do my own parsing ? }
You would need to do your own parsing.
Your requirement seems unusual to me, and fraught with possibilities for
mistakes. What information will you gain from the INF file that isn’t
already in the registry or that that you could not have put into the
registry with appropriate INF syntax? How will you deal with the
possibility that your INF file may have been deleted, renamed, or moved
to an unexpected directory?
–
Walter Oney, Consulting and Training
Check out new US seminar schedule at http://www.oneysoft.com
I am trying to read some basic configuration info related to my
application from my file which happens to be in an INF file format, although
it is not an INF file used to do driver installation.
Thanks for the reply.
–
Cheers
Check Abdoul
“Walter Oney” wrote in message news:xxxxx@ntdev… > > notes wrote: > > I need to parse a custom .inf file in my driver. I used to use the > > SetupNNN functions ( like the SetupOpenInfFile() etc ) in my user mode > > programming. Is there a similar set of kernel mode API’s to load and parse > > an .INF file ? { or do I need to do my own parsing ? } > > You would need to do your own parsing. > > Your requirement seems unusual to me, and fraught with possibilities for > mistakes. What information will you gain from the INF file that isn’t > already in the registry or that that you could not have put into the > registry with appropriate INF syntax? How will you deal with the > possibility that your INF file may have been deleted, renamed, or moved > to an unexpected directory? > > – > Walter Oney, Consulting and Training > Check out new US seminar schedule at http://www.oneysoft.com > >