// srb.h
typedef enum {
StorStartDevice,
StorRemoveDevice,
StorStopDevice,
StorQueryCapabilities,
StorQueryResourceRequirements,
StorFilterResourceRequirements,
StorSurpriseRemoval
} STOR_PNP_ACTION, *PSTOR_PNP_ACTION;
View the official Windows Driver Kit DDI reference// storport.h
typedef enum {
StorStartDevice = 0x0,
StorRemoveDevice = 0x2,
StorStopDevice = 0x4,
StorQueryCapabilities = 0x9,
StorQueryResourceRequirements = 0xB,
StorFilterResourceRequirements = 0xD,
StorSurpriseRemoval = 0x17
} STOR_PNP_ACTION, *PSTOR_PNP_ACTION;
View the official Windows Driver Kit DDI referenceNo description available.
Enumerates Plug and Play minor function codes.
StorStartDeviceSends a request to start the device.
StorRemoveDeviceSends a request to remove the device.
StorStopDeviceIndicates that the device is stopping.
StorQueryCapabilitiesSends a request to query the capabilities of the device.
StorQueryResourceRequirementsSends a request to query the resource requirements of the device.
StorFilterResourceRequirementsSends a request to filter the resource requirements of the device.
StorSurpriseRemovalIndicates that the device has been removed.
These values are passed in through the PnPAction field of a SRBEX_DATA_PNP structure.
StorStartDevice:0x0StorRemoveDevice:0x2StorStopDevice:0x4StorQueryCapabilities:0x9StorQueryResourceRequirements:0xBStorFilterResourceRequirements:0xDStorSurpriseRemoval:0x17