StorPortSetFeatureList - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// storport.h

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

View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-storport-storportsetfeaturelist)

StorPortSetFeatureList function

Description

StorPortSetFeatureList sets the StorPort features that a miniport supports.

Parameters

HwDeviceExtension

Pointer to the miniport's device extension.

FeatureCount

Number of features that FeatureList points to.

FeatureList

Pointer to an array of STORPORT_FEATURE_TYPE enum values that identify the StorPort features supported by the miniport.

Return value

StorPortSetFeatureList returns a status code such as one of the following:

Return code Description
STOR_STATUS_SUCCESS The feature list was set successfully.
STOR_STATUS_INVALID_PARAMETER An input parameter is invalid; for example, FeatureList is NULL or FeatureCount is out of range.
STOR_STATUS_UNSUCCESSFUL The operation failed.

Remarks

A miniport calls StorPortSetFeatureList to set the StorPort features that it supports. A miniport should call this function for each adapter in the beginning of its HwFindAdapter routine.

See also

HwFindAdapter

STORPORT_FEATURE_TYPE