共用方式為


unregisterDeviceNotification 函式 (winuser.h)

關閉指定的裝置通知句柄。

語法

BOOL UnregisterDeviceNotification(
  [in] HDEVNOTIFY Handle
);

參數

[in] Handle

RegisterDeviceNotification 函式傳回的裝置通知句柄。

傳回值

如果函式成功,則傳回非零的值。

如果此函式失敗,則傳回值為零。 若要取得擴充的錯誤資訊,請呼叫 GetLastError

規格需求

需求
最低支援的用戶端 Windows XP
最低支援的伺服器 Windows Server 2003
目標平台 Windows
標頭 winuser.h (包含 Windows.h)
程式庫 User32.lib
Dll User32.dll
API 集合 ext-ms-win-ntuser-misc-l1-1-0 (於 Windows 8)

另請參閱

裝置管理 函式

裝置通知

RegisterDeviceNotification

WM_DEVICECHANGE