共用方式為


StorPortFreeTimer 函式 (storport.h)

釋放先前由 StorPortInitializeTimer 例程所建立的 Storport 定時器內容物件。

語法

ULONG StorPortFreeTimer(
  [in] PVOID HwDeviceExtension,
  [in] PVOID TimerHandle
);

參數

[in] HwDeviceExtension

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

[in] TimerHandle

StorPortInitializeTimer 所傳回之定時器內容的不透明緩衝區指標

傳回值

StorPortFreeTimer 例程會傳回下列其中一個狀態代碼:

傳回碼 描述
STOR_STATUS_INVALID_IRQL
目前的 IRQL > DISPATCH_LEVEL。
STOR_STATUS_INVALID_PARAMETER
HwDeviceExtensionTimerHandle 為 NULL。
STOR_STATUS_INSUFFICIENT_RESOURCES
資源不足,無法釋出定時器。
STOR_STATUS_SUCCESS
已成功釋放定時器。
STOR_STATUS_UNSUCCESSFUL
定時器已經是免費的。

言論

每當不再需要工作專案或迷你埠收到 PnP SRB 通知時,Miniports 應該呼叫 StorPortFreeTimer,指出已移除配接器。

要求

要求 價值
最低支援的用戶端 適用於 Windows 8 和更新版本的 Windows。
目標平臺 普遍
標頭 storport.h (包括 Storport.h)
IRQL <= DISPATCH_LEVEL

另請參閱

HwStorAdapterControl

StorPortInitializeTimer

StorPortRequestTimer