12-17-2008 11:32 AM
Hi All,
I have a query and i appreciate if some one can help me.
My driver works on two sys file, pmt.sys and pixtel.sys
here is section of my inf file
;
; Models
;
[Pixtel]
%PID_NUM% =PMT_Install, pmt\pmtEnum ---> it installs pmt.sys file
%PID_1206% =Pixtel_Install,USB\VID_PID_1266 ---> it installs pixtel.sys file
[PMT_Install.NTx86]
CopyFiles=pmt_Files,pixtel_Files
....
....
[Pixtel_Install.NTx86]
CopyFiles=pmt_Files,pixtel_Files
...
....
Now pmt\pmtEnum is my own define hardware id.
Now first i install my pmt.sys file through my own defined executable program by using setupapi calls by passing pmt\pmtEnum as hardware id to setupapi functions.
Also i use SetupCopyOEM() to copy inf file to WIndows\INF folder.
Now when i insert smartcard into USB, it searches the INF file and install pixtel.sys through Driver Installation framework (internally it passes USB\VID_PID_1266 as hardware id)
This works fine for me, but now i want that my both .sys files (pmt.sys and pixtel.sys)is installed through INF file only i.e. i dont want to use any executable program.
Through Add New Hardware program, driver installation framework is only able to pass USB\VID_PID_1266 (which is smart card h/w id)hardware id to inf file, so internally it installs only pixtel.sys file. but it does not install pmt.sys file as driver installation framework is unable to pass my own defined hardware id i.e pmt\pmtEnum to INF file.
Is there any way through which i can pass my own defined hardware id i.e. pmt\pmtEnum to INF file (through Driver installation framework) and then second hardware id i.e. USB\VID_PID_1266.
I appreciate if i can get any response.
Regards
shontu
12-19-2008 01:25 AM