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. |
| DevicePathName | Required. A String Value. Handle to a device. |
| formHandle | Required. A Long Value. Handle to the window that will receive device events. |
| ClassGuid | Required. A Guid Value. Device interface GUID. |
| deviceNotificationHandle | Required. A Long Value. Returned device notification handle. |