RegisterDeviceNotification |
Declare Sub Api_RegisterDeviceNotification Lib "user32" Alias "RegisterDeviceNotificationA" (ByVal hRecipient&, NotificationFilter As Any, ByVal Flags&) |
||||||
Declare Sub RegisterDeviceNotification Lib "user32" Alias "RegisterDeviceNotificationA" (ByVal hRecipient As Long, NotificationFilter As Any, ByVal Flags As Long) |
|||||||
通知を受け取るデバイスまたはデバイスタイプを指定できるようにする。 |
|||||||
パラメータ
RegisterDeviceNotification 関数の呼び出しで同じウィンドウハンドルを利用できる。
このヘッダーの後に続くデータは、dbch_devicetype メンバの値に依存する。
戻り値 とにより、基本的な通知を受け取ることができる。アプリケーションは RegisterDeviceNotification 関数を使って、デバイス通知を受け取る
ための登録を行うことができる。 ラメータにウィンドウハンドルを指定した場合、通知はウィンドウプロシージャへ送信される。hRecipient にサービス状態ハンドルが指定された 場合、通知はサービス制御ハンドラへ送信される。。 |