[從 Windows 7 和 Windows Server 2008 R2 起,不再提供卸除式儲存管理員 。]
CloseNtmsNotification 函式會關閉指定的開啟通知通道。
語法
DWORD CloseNtmsNotification(
[in] HANDLE hNotification
);
參數
[in] hNotification
OpenNtmsNotification 函式所傳回的通知句柄。
傳回值
此函式會傳回下列其中一個值。
| 值 | 意義 |
|---|---|
|
資料庫查詢或更新失敗。 |
|
hNotification 參數中指定的值無效。 |
|
hNotification 參數為 NULL。 |
|
無法連線到 RSM 服務。 |
|
函式成功。 |
備註
如果在 WaitForNtmsNotification 函式有未完成呼叫時呼叫 CloseNtmsNotification 函式,就會傳回錯誤。
規格需求
| 需求 | 值 |
|---|---|
| 最低支援的用戶端 | Windows XP [僅限傳統型應用程式] |
| 最低支援的伺服器 | Windows Server 2003 [僅限傳統型應用程式] |
| 目標平台 | Windows |
| 標頭 | ntmsapi.h |
| 程式庫 | Ntmsapi.lib |
| Dll | Ntmsapi.dll |