SRB_PAGING_OUT_DRIVER

The class driver sends this request to signal that it is about to page out the minidriver.

Return Value

The minidriver should set one of the following as the status in the SRB:

STATUS_SUCCESS
Indicates successful completion of the command.

Comments

The class driver only attempts to page out the minidriver if it has no open streams or devices. Though it is unlikely that a minidriver would have pending callbacks in this state, the minidriver should cancel any outstanding callbacks upon receipt of this SRB. The minidriver should disable adapter interrupts and then return STATUS_SUCCESS.

The class driver pages out the minidriver only if the minidriver turns on this feature. The minidriver enables this feature by setting the registry variable PageOutWhenUnopened to 1 in the device's INF file. See the sample streaming minidriver's INFs for more information.