Reading INF file
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
I have a VC++ application where I need to read (and sometimes parse) the contents of various printer manufacturers INF files to populate a listbox to enable our users to select which printer to install. I am stuggling to find example code using the following setupapi calls SetupGetLineByIndex SetupGetStringField I have tried using the Profile api's also, but some INF's are better than others and using GetPrivateProfileSection doesn't always work successfully and involves rather messing string handling. Any help would be appreciated, many thanks in advance.