PRB: SCSI Miniport Driver Never Receives SRB_FUNCTION_SHUTDOWN

ID: Q194639


The information in this article applies to:
  • Microsoft Win32 Device Driver Kit (DDK) Windows 95


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 : kbDDK kbStorageDev kbWinOS95
Version : WINDOWS:Windows 95
Platform : WINDOWS
Issue type : kbprb


Last Reviewed: October 18, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.