DispatchShutdown Routines

A driver's DispatchShutdown routine handles IRPs for the IRP_MJ_SHUTDOWN I/O function code. Drivers of mass-storage devices that have internal caches for data must handle this request. Drivers of mass-storage devices and intermediate drivers layered over them also must handle this request if an underlying driver maintains internal buffers for data.