Knowledge Base

PRB: SCSI Miniport Driver Never Receives SRB_FUNCTION_SHUTDOWN

PSS ID Number: 194639

Article Last Modified on 10/20/1999


The information in this article applies to:


This article was previously published under Q194639

SYMPTOMS

A SCSI miniport driver might not receive SRB_FUNCTION_SHUTDOWN, which is used to indicate that Windows 95 is shutting down.

CAUSE

Under specific circumstances, Configuration Manager removes the SCSI miniport driver before IOS can notify SCSIPORT to issue SRB_FUNCTION_SHUTDOWN to the SCSI miniport driver. This occurs if BOTH of the following are true:

  • The driver has no logical boot configuration (that is, it was not active before Windows 95 switched to protected mode).
  • The driver's ConfigFlags hardware registry value has the following bit clear: CONFIGFLAG_NOREMOVEEXIT

RESOLUTION

Set the CONFIGFLAG_NOREMOVEEXIT bit flag (this flag value is defined in regstr.h). The following text, when included in your .inf file, will accomplish this:
   [drivername.hw]
   AddReg=driverhw

   [driverhw]
   HKR,,ConfigFlags,1,00,02,00,00
				
Implementing this will allow the miniport driver to see SRB_FUNCTION_SHUTDOWN.

STATUS

This behavior is by design.

Additional query words: SCSI miniport shutdown

Keywords: kbprb kbStorageDev KB194639
Technology: kbAudDeveloper kbWin32DDK95 kbWin32DDKSearch kbWin32sSearch kbWin95search kbWinDDKSearch