Condividi tramite


Funzione StorPortSetFeatureList (storport.h)

StorPortSetFeatureList imposta le funzionalità StorPort supportate da un miniport.

Sintassi

ULONG StorPortSetFeatureList(
  PVOID    HwDeviceExtension,
  ULONG    FeatureCount,
  PBOOLEAN FeatureList
);

Parametri

HwDeviceExtension

Puntatore all'estensione del dispositivo miniport.

FeatureCount

Numero di funzionalità a cui FeatureList punta.

FeatureList

Puntatore a una matrice di valori di enumerazione STORPORT_FEATURE_TYPE che identificano le funzionalità StorPort supportate dal miniport.

Valore restituito

StorPortSetFeatureList restituisce un codice di stato, ad esempio uno dei seguenti:

Codice restituito Descrizione
STOR_STATUS_SUCCESS L'elenco delle funzionalità è stato impostato correttamente.
STOR_STATUS_INVALID_PARAMETER Un parametro di input non è valido; Ad esempio, FeatureList è NULL o FeatureCount non è compreso nell'intervallo.
STOR_STATUS_UNSUCCESSFUL Operazione non riuscita.

Osservazioni

Un miniport chiama StorPortSetFeatureList per impostare le funzionalità di StorPort supportate. Un miniport deve chiamare questa funzione per ogni adattatore all'inizio della routine HwFindAdapter.

Fabbisogno

Requisito Valore
client minimo supportato Windows 10, versione 2004
intestazione storport.h

Vedere anche

HwFindAdapter

STORPORT_FEATURE_TYPE