Re: Calling inf file or installing .sys file from DriverEntry func
- From: umesh <umesh@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 18 Dec 2008 06:26:07 -0800
Thanks for your reply.
Ok let me explain the original problem.
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
.....
[PMT_Install.NTx86.Services]
AddService=pmtToken,0x00000002,pmt_AddService
.....
[Pixtel_Install.NTx86]
CopyFiles=pmt_Files,pixtel_Files
....
[Pixtel_Install.NTx86.Services]
AddService=pixtelToken,0x00000002,pistel_AddService
.....
Now pmt\pmtEnum is my own define hardware id.
and USB\VID_PID_1266 is vendor id which i treat as hardware id.
Now first i install my pmt.sys file through my own defined executable
program (say xxx.exe) which call setupapi functions (for eg.
UpdateDriverForPlugAndPlayDevices). I pass pmt\pmtEnum as hardware id to
UpdateDriverForPlugAndPlayDevices()\, which i think internally calls INF
passing same hardware id and then in the inf file it matches the section
corresponding to hardware id and then installs the .sys file corresponding to
it.
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.
In short i want to install my both sys files through INF file. Please
suggest me ways.
I appreciate if i can get any response.
Regards
wanni
"Don Burn" wrote:
This is a copy of the response I put on.
microsoft.public.win32.programmer.kernel, please consider either posting to
both groups together, or to only one group. Having independant posts to two
groups causes terrible mixing of ideas.
First please explain why you feel you need such an architecture? There are
ways to load other drivers, or trigger the PnP subsystem to do so but
without some understanding of what your needs are, I will not go into them.
They either break PnP or are very heavyweight.
--
Don Burn (MVP, Windows DDK)
Windows Filesystem and Driver Consulting
Website: http://www.windrvr.com
Blog: http://msmvps.com/blogs/WinDrvr
Remove StopSpam to reply
"umesh" <umesh@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:E3A4DE6D-26CE-4309-861A-DB103FA6059A@xxxxxxxxxxxxxxxx
Hi ALL,
I am installing a new driver through INF file. I inserted my card into USB
and it ask me for path for INF file. I browse the the inf file and it
calls
DriverEntry function of my sys file ( correct me if am wrong)
Now from this DriverEntry function i want to install
another sys file or want to call INF file passing my own hardware ID to
INF
file. Can you tell me if this is possible?. Is there any way through which
i
can
load/install .sys files from another sys file (lets say from DriverEntry
Function of another sys file).
I appreciate for any kind of inputs.
Regards
Wanni.
- Follow-Ups:
- References:
- Prev by Date: How to access return codes from Directx 10 DDI functions ?
- Next by Date: Re: Calling inf file or installing .sys file from DriverEntry func
- Previous by thread: Re: Calling inf file or installing .sys file from DriverEntry function
- Next by thread: Re: Calling inf file or installing .sys file from DriverEntry func
- Index(es):
Relevant Pages
|
Loading