Export (0) Print
Expand All

SRBEX_DATA_PNP structure

The SRBEX_DATA_PNP structure contains the request data for an extended plug and play (PNP) SRB.

Syntax


typedef struct _SRBEX_DATA_PNP {
  SRBEXDATATYPE   Type;
  ULONG           Length;
  UCHAR           PnPSubFunction;
  UCHAR           Reserved[3];
  STOR_PNP_ACTION PnPAction;
  ULONG           SrbPnPFlags;
  ULONG           Reserved1;
} SRBEX_DATA_PNP, *PSRBEX_DATA_PNP;

Members

Type

Data type indicator for the bidirectional extended SRB data structure. Set to SrbExDataTypePnp.

Length

Length of the data in this structure starting with the PnPSubFunction member. Set to SRBEX_DATA_PNP_LENGTH.

PnPSubFunction

This member is not currently used. Set to 0.

Reserved

This member is reserved. Set to 0.

PnPAction

The plug and play action to perform. This member can have one of the following values:

ValueMeaning
StorStartDevice
0x00

Start the device.

StorRemoveDevice
0x02

Remove the device.

StorStopDevice
0x04

Stop the device.

StorQueryCapabilities
0x09

Query the capabilities of the device.

StorQueryResourceRequirements
0x0B

Query the resource requirements for the device.

StorFilterResourceRequirements
0x0D

Filter the resource requirements for the device.

StorSupriseRemoval
0x17

Surprise Removal of the device. This value is available starting with Windows 7.

 

SrbPnPFlags

Indicates that the PNP request is for the adapter if SRB_PNP_FLAGS_ADAPTER_REQUEST is set and that storage device address is reserved. Otherwise, SrbPnPFlags will be NULL, indicating that the request is for the storage device specified by an address at AddressOffset in the STORAGE_REQUEST_BLOCK structure.

Reserved1

This member is reserved. Set to 0.

Requirements

Version

Available starting with Windows 8.

Header

Storport.h (include Storport.h or Srb.h)

See also

STORAGE_REQUEST_BLOCK

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft