Share via


UnregisterDeviceNotification 関数 (winuser.h)

指定したデバイス通知ハンドルを閉じます。

構文

BOOL UnregisterDeviceNotification(
  [in] HDEVNOTIFY Handle
);

パラメーター

[in] Handle

RegisterDeviceNotification 関数によって返されるデバイス通知ハンドル。

戻り値

関数が成功すると、戻り値は 0 以外になります。

関数が失敗した場合は、0 を返します。 詳細なエラー情報を得るには、GetLastError を呼び出します。

要件

要件
サポートされている最小のクライアント Windows XP
サポートされている最小のサーバー Windows Server 2003
対象プラットフォーム Windows
ヘッダー winuser.h (Windows.h を含む)
Library User32.lib
[DLL] User32.dll
API セット ext-ms-win-ntuser-misc-l1-1-0 (Windows 8 で導入)

こちらもご覧ください

デバイス管理関数

デバイス通知

RegisterDeviceNotification

WM_DEVICECHANGE