共用方式為


STOR_PNP_ACTION列舉 (srb.h)

列舉即插即用次要函式程序代碼。

語法

typedef enum {
  StorStartDevice,
  StorRemoveDevice,
  StorStopDevice,
  StorQueryCapabilities,
  StorQueryResourceRequirements,
  StorFilterResourceRequirements,
  StorSurpriseRemoval
} STOR_PNP_ACTION, *PSTOR_PNP_ACTION;

常數

 
StorStartDevice
傳送要求以啟動裝置。
StorRemoveDevice
傳送要求以移除裝置。
StorStopDevice
表示裝置正在停止。
StorQueryCapabilities
傳送要求以查詢裝置的功能。
StorQueryResourceRequirements
傳送要求以查詢裝置的資源需求。
StorFilterResourceRequirements
傳送要求以篩選裝置的資源需求。
StorSurpriseRemoval
表示裝置已移除。

言論

這些值會透過 SRBEX_DATA_PNP 結構的 PnPAction 欄位傳入。

要求

要求 價值
標頭 srb.h

另請參閱