PHW_ADAPTER_STATE callback function (srb.h)

The PHW_INITIALIZE routine prototype declares a routine that saves or restores the state of the miniport driver's HBA.

Syntax

PHW_ADAPTER_STATE PhwAdapterState;

BOOLEAN PhwAdapterState(
  [in] PVOID DeviceExtension,
  [in] PVOID Context,
  [in] BOOLEAN SaveState
)
{...}

Parameters

[in] DeviceExtension

Pointer to the miniport driver's per-HBA storage area.

[in] Context

Reserved for system use.

[in] SaveState

Indicates, when TRUE, that the miniport driver should save the current state of the HBA until the HwScsiAdapterState routine is called again with SaveState set to FALSE to restore the saved state.

Return value

The routine declared by this prototype returns TRUE if it successfully saved or restored the HBA state, FALSE otherwise.

Remarks

Only SCSI miniport drivers use this prototype. Miniport drivers that work with the StorPort driver do not use the routine that is declared by this prototype.

For more information about the routine declared by this prototype, see HwScsiAdapterState.

Requirements

Requirement Value
Target Platform Desktop
Header srb.h (include Storport.h, Srb.h, Storport.h)

See also

HwScsiAdapterState