UpdateDriverForPlugAndPlayDevices for root enumerated devices on vista and above

Folks,

I am creating a root enumerated device (say root\mydevice).

I am using “UpdateDriverForPlugAndPlayDevices” for picking up my driver for
this device.

On XP, 2k3 systems, I am getting “bRebootRequired” argument set as FALSE,
However on Vista+, I am getting “bRebootRequired” argument set as TRUE.

Is implementation of “UpdateDriverForPlugAndPlayDevices” or of PnPManager’s
MJ_PNP handlers different such that it specifies RebootRequired for each
root enumerated device.

Or I am missing something here on longhorn systems?

Regards
Deepak

Hmmmm… perhaps you’re installation package is providing a new KMDF library on S03… but the specified version is already in place in Vista+?

Peter
OSR

Deepak Gupta wrote:

I am creating a root enumerated device (say root\mydevice).

I am using “UpdateDriverForPlugAndPlayDevices” for picking up my
driver for this device.

On XP, 2k3 systems, I am getting “bRebootRequired” argument set as
FALSE, However on Vista+, I am getting “bRebootRequired” argument set
as TRUE.

Is implementation of “UpdateDriverForPlugAndPlayDevices” or of
PnPManager’s MJ_PNP handlers different such that it specifies
RebootRequired for each root enumerated device.

No, I’m sure that Peter hit the nail on the head. You have probably
written a KMDF driver using the latest WDK. When the KMDF co-installer
discovers that it is being installed on a system that already has an
older version of KMDF, it requires a reboot to do the upgrade. This
only happens once, however. XP does not include any KMDF drivers out of
the box, so no upgrade is required. Vista includes an older version, so
you get an upgrade.

Windows 7 should not require one, however.


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.

Thanks Peter!!!
As Tim said, you hit the nail on the head.

I had my driver based on latest wdf co-installer and vista had older one.
Thus it required a reboot.
Verified, not happening on Win 7.

Setupapidev.log also conveys same message.

Regards
Deepak

On Mon, Jan 17, 2011 at 11:44 PM, Tim Roberts wrote:

> Deepak Gupta wrote:
> >
> > I am creating a root enumerated device (say root\mydevice).
> >
> > I am using “UpdateDriverForPlugAndPlayDevices” for picking up my
> > driver for this device.
> >
> > On XP, 2k3 systems, I am getting “bRebootRequired” argument set as
> > FALSE, However on Vista+, I am getting “bRebootRequired” argument set
> > as TRUE.
> >
> > Is implementation of “UpdateDriverForPlugAndPlayDevices” or of
> > PnPManager’s MJ_PNP handlers different such that it specifies
> > RebootRequired for each root enumerated device.
>
> No, I’m sure that Peter hit the nail on the head. You have probably
> written a KMDF driver using the latest WDK. When the KMDF co-installer
> discovers that it is being installed on a system that already has an
> older version of KMDF, it requires a reboot to do the upgrade. This
> only happens once, however. XP does not include any KMDF drivers out of
> the box, so no upgrade is required. Vista includes an older version, so
> you get an upgrade.
>
> Windows 7 should not require one, however.
>
> –
> Tim Roberts, xxxxx@probo.com
> Providenza & Boekelheide, Inc.
>
>
> —
> NTDEV is sponsored by OSR
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>