共用方式為


StorPortIsDriverHotSwapEnabled 函式 (storport.h)

迷你埠驅動程式會呼叫 StorPortIsDriverHotSwapEnabled 函式,以判斷核心中是否啟用驅動程式熱交換。

語法

ULONG StorPortIsDriverHotSwapEnabled(
  PVOID HwDeviceExtension,
  PVOID DriverObject
);

參數

HwDeviceExtension

[in]主機總線適配卡 (HBA) 的硬體裝置擴充功能指標。

DriverObject

[in]驅動程式物件的指標。

傳回值

啟用驅動程式熱交換時,storPortIsDriverHotSwapEnabled 會傳回STOR_STATUS_SUCCESS。 否則,它會傳回值,例如:

傳回值 描述
STOR_STATUS_INVALID_PARAMETER 驅動程式物件為NULL。
STOR_STATUS_NOT_IMPLEMENTED 此函式不會在作用中的作系統上實作。

要求

要求 價值
最低支援的用戶端 Windows 11 版本 24H2
標頭 storport.h

另請參閱

StorPortRegisterDriverProxy

StorPortRegisterDriverProxyEndpoints

StorPortGetDriverProxyEndpointWrapper