From: Pavel A. on
Study the devcon.exe sources in WDK; it has everything that one may ever
want to know about setupapi.

Regards,
--pa

"eugals" <eugals(a)gmail.com> wrote in message
news:c90b2c8e-b25a-4f6e-b03d-7165469932d7(a)r1g2000yqj.googlegroups.com...
> Hi.
>
> MSDN, a the SetupDiCreateDeviceInfo Function article, <a href="http://
> msdn.microsoft.com/en-us/library/ff550952.aspx">says</a> that:
> <i> DICD_INHERIT_CLASSDRVS
> If this flag is specified, the resulting device information element
> inherits the class driver list, if any, associated with the device
> information set. In addition, if there is a selected driver for the
> device information set, that same driver is selected for the new
> device information element.</i>
>
> My question is how do i "associate a driver list with the device
> information set"? I have an empty HDEVINFO created with the
> SetupDiCreateDeviceInfoList, which function should I perform on it,
> before I call the SetupDiCreateDeviceInfo so I could pass the
> DICD_INHERIT_CLASSDRVS there?

From: eugals on
On 4 апр, 01:46, "Pavel A." <pave...(a)12fastmail34.fm> wrote:
> Study the devcon.exe sources in WDK; it has everything that one may ever
> want to know about setupapi.
>
Hi Pavel,
thanks for your responce.

Yeah, I checked the devcon sources already.
Unfortunately there are 0 occurrences of the DICD_INHERIT_CLASSDRVS
flag in there.
From: Kalle Olavi Niemitalo on
eugals <eugals(a)gmail.com> writes:

> My question is how do i "associate a driver list with the device
> information set"?

Passing DeviceInfoData=NULL to either SetupDiBuildDriverInfoList
or SetupDiSelectOEMDrv might do it.
From: eugals on
On 4 апр, 12:10, Kalle Olavi Niemitalo <k...(a)iki.fi> wrote:
> Passing DeviceInfoData=NULL to either SetupDiBuildDriverInfoList
> or SetupDiSelectOEMDrv might do it.

Thanks!