Public Method RegisterForDeviceNotifications

Requests to receive a notification when a device is attached or removed.

Returns True on success, False otherwise.

Type Return

A Boolean Value

Syntax

Object.RegisterForDeviceNotifications ( DevicePathName, formHandle, ClassGuid, deviceNotificationHandle)

The RegisterForDeviceNotifications Methods syntax has these parts:

Part Description
object An expression evaluating to an Object of type modWinUSB.
DevicePathNameRequired. A String Value. Handle to a device.
formHandleRequired. A Long Value. Handle to the window that will receive device events.
ClassGuidRequired. A Guid Value. Device interface GUID.
deviceNotificationHandleRequired. A Long Value. Returned device notification handle.