INF FILES

I 'd like to know how to call another inf file(s) from one main inf file. What section of the inf file tells the OS that there are child devices (also) to be installed?

Thanks


Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos, & more
faith.yahoo.com

NT Developer wrote:

I 'd like to know how to call another inf file(s) from one main inf
file. What section of the inf file tells the OS that there are child
devices (also) to be installed?

The INF language is non-procedural, so you can’t “call” or include
another file.

The thing that triggers the PnP Manager to install drivers for a child
device is the parent device reporting the child in a BusRelations query.
I think the currently recommended way to prepare for installing child
device drivers is for the main INF to include CopyINF directives to
pre-install the INF files for the children. You can read about CopyINF
in the DDK. Among the things you’ll learn is that XP supports the
directive but that earlier systems do not. For 2K, you can distribute a
co-installer DLL that Microsoft wrote. For 98/Me, you should just use a
CopyFiles section to pre-install the child INF files.


Walter Oney, Consulting and Training
Basic and Advanced Driver Programming Seminars
Now teaming with John Hyde for USB Device Engineering Seminars
Check out our schedule at http://www.oneysoft.com

The syntax for including is: Include=xxxxx.inf

Sample:

[HIDConsumer]
Include=hiddev.inf
Needs=HIDSystemConsumer

At 12:38 AM 10/9/2002, you wrote:

NT Developer wrote:
> I 'd like to know how to call another inf file(s) from one main inf
> file. What section of the inf file tells the OS that there are child
> devices (also) to be installed?

The INF language is non-procedural, so you can’t “call” or include
another file.

The thing that triggers the PnP Manager to install drivers for a child
device is the parent device reporting the child in a BusRelations query.
I think the currently recommended way to prepare for installing child
device drivers is for the main INF to include CopyINF directives to
pre-install the INF files for the children. You can read about CopyINF
in the DDK. Among the things you’ll learn is that XP supports the
directive but that earlier systems do not. For 2K, you can distribute a
co-installer DLL that Microsoft wrote. For 98/Me, you should just use a
CopyFiles section to pre-install the child INF files.


Walter Oney, Consulting and Training
Basic and Advanced Driver Programming Seminars
Now teaming with John Hyde for USB Device Engineering Seminars
Check out our schedule at http://www.oneysoft.com


You are currently subscribed to ntdev as: zeppelin@io.com
To unsubscribe send a blank email to %%email.unsub%%