Bus driver for W2K

Hi all,

I am working on a bus driver for an adapter similar to the scsi bus
adapter. Everythings works fine accept when you connect a new device to
the bus the very first time, after the configuration manager picked and
installed a driver (a cdrom driver in this case) for the new PDO created
by the bus driver, it will pop up a dialog box says

"Windows 2000 has finished installing new devices, You must restart your
computer before the new settings will take effect. Do you want to restart
your computer now? "

Does anyone know why this dialog box come up? How come the Microsoft scsi
port driver does not have this problem? If you connect a new scsi cdrom
drive to the bus, the cdrom driver will load automatically and this dialog
box will never come up.

Thanks
Jing Leung
software engineer

This is one of the problems I’m having in the Port driver I’m writing for
our Ide controller.

I haven’t had time to fully look into it, but I believe it has something to
do with how I’m handling remove Irps just after a device is connected for
the first time.

I also think it may have to do with what the capabilities structure looks
like, the format of the ID’s I’m returning to IRP_MN_QUERY_ID, device flags
I’m setting when I create the PDO, etc.

If you get anywhere let me know so we can debug this issue together.

Daniel Nemiroff
Intel Corporation
System Software Engineering
(916) 356-5723

-----Original Message-----
From: xxxxx@softarch.com [mailto:xxxxx@softarch.com]
Sent: Tuesday, August 15, 2000 12:10 PM
To: NT Developers Interest List
Subject: [ntdev] Bus driver for W2K

Hi all,

I am working on a bus driver for an adapter similar to the scsi bus
adapter. Everythings works fine accept when you connect a new device to
the bus the very first time, after the configuration manager picked and
installed a driver (a cdrom driver in this case) for the new PDO created
by the bus driver, it will pop up a dialog box says

"Windows 2000 has finished installing new devices, You must restart your
computer before the new settings will take effect. Do you want to restart
your computer now? "

Does anyone know why this dialog box come up? How come the Microsoft scsi
port driver does not have this problem? If you connect a new scsi cdrom
drive to the bus, the cdrom driver will load automatically and this dialog
box will never come up.

Thanks
Jing Leung
software engineer


You are currently subscribed to ntdev as: xxxxx@intel.com
To unsubscribe send a blank email to $subst(‘Email.Unsub’)

If you fail a query remove you will definitely get this pop-up, but this is
unfortunately not the only reason.

Turning on setapi logging (with output directed to the debug console for
correlation with your own trace output,) may help.

Note that a new device almost always gets a query remove request on
insertion.

-----Original Message-----
From: Nemiroff, Daniel [mailto:xxxxx@intel.com]
Sent: Tuesday, August 15, 2000 4:04 PM
To: NT Developers Interest List
Subject: [ntdev] RE: Bus driver for W2K

This is one of the problems I’m having in the Port driver I’m
writing for
our Ide controller.

I haven’t had time to fully look into it, but I believe it
has something to
do with how I’m handling remove Irps just after a device is
connected for
the first time.

I also think it may have to do with what the capabilities
structure looks
like, the format of the ID’s I’m returning to
IRP_MN_QUERY_ID, device flags
I’m setting when I create the PDO, etc.

If you get anywhere let me know so we can debug this issue together.

Daniel Nemiroff
Intel Corporation
System Software Engineering
(916) 356-5723

-----Original Message-----
From: xxxxx@softarch.com [mailto:xxxxx@softarch.com]
Sent: Tuesday, August 15, 2000 12:10 PM
To: NT Developers Interest List
Subject: [ntdev] Bus driver for W2K

Hi all,

I am working on a bus driver for an adapter similar to the scsi bus
adapter. Everythings works fine accept when you connect a
new device to
the bus the very first time, after the configuration manager
picked and
installed a driver (a cdrom driver in this case) for the new
PDO created
by the bus driver, it will pop up a dialog box says

"Windows 2000 has finished installing new devices, You must
restart your
computer before the new settings will take effect. Do you
want to restart
your computer now? "

Does anyone know why this dialog box come up? How come the
Microsoft scsi
port driver does not have this problem? If you connect a new
scsi cdrom
drive to the bus, the cdrom driver will load automatically
and this dialog
box will never come up.

Thanks
Jing Leung
software engineer


You are currently subscribed to ntdev as: xxxxx@intel.com
To unsubscribe send a blank email to $subst(‘Email.Unsub’)


You are currently subscribed to ntdev as: xxxxx@stratus.com
To unsubscribe send a blank email to $subst(‘Email.Unsub’)

Have you tried turning on verbose logging as described in the DDK (see
Using SetupAPI Logging). There are several reasons why Windows 2000
will think that it is unable to load a driver and thus prompt for a
reboot. It could be a resource issue that can’t be rebalanced, an
attempt to copy over a locked file, something wrong in the *.inf file,
or some other reason.

In any case, the verbose log should give you a pretty good idea of why
the o/s is prompting for a reboot.

Sandy Spinrad
Device Driver Evangelist
Microsoft Corporation

-----Original Message-----
From: Nemiroff, Daniel [mailto:xxxxx@intel.com]
Sent: Tuesday, August 15, 2000 1:04 PM
To: NT Developers Interest List
Subject: [ntdev] RE: Bus driver for W2K

This is one of the problems I’m having in the Port driver I’m writing
for
our Ide controller.

I haven’t had time to fully look into it, but I believe it has something
to
do with how I’m handling remove Irps just after a device is connected
for
the first time.

I also think it may have to do with what the capabilities structure
looks
like, the format of the ID’s I’m returning to IRP_MN_QUERY_ID, device
flags
I’m setting when I create the PDO, etc.

If you get anywhere let me know so we can debug this issue together.

Daniel Nemiroff
Intel Corporation
System Software Engineering
(916) 356-5723

-----Original Message-----
From: xxxxx@softarch.com [mailto:xxxxx@softarch.com]
Sent: Tuesday, August 15, 2000 12:10 PM
To: NT Developers Interest List
Subject: [ntdev] Bus driver for W2K

Hi all,

I am working on a bus driver for an adapter similar to the scsi bus
adapter. Everythings works fine accept when you connect a new device to
the bus the very first time, after the configuration manager picked and
installed a driver (a cdrom driver in this case) for the new PDO created
by the bus driver, it will pop up a dialog box says

"Windows 2000 has finished installing new devices, You must restart
your
computer before the new settings will take effect. Do you want to
restart
your computer now? "

Does anyone know why this dialog box come up? How come the Microsoft
scsi
port driver does not have this problem? If you connect a new scsi cdrom
drive to the bus, the cdrom driver will load automatically and this
dialog
box will never come up.

Thanks
Jing Leung
software engineer


You are currently subscribed to ntdev as: xxxxx@intel.com
To unsubscribe send a blank email to $subst(‘Email.Unsub’)


You are currently subscribed to ntdev as: xxxxx@exchange.microsoft.com
To unsubscribe send a blank email to $subst(‘Email.Unsub’)