UsbRegisterDeviceNotification
Appearance
Description
Registers semaphores for attach/detach notification of a specific USB device.
Syntax
ulrc=UsbRegisterDeviceNotification(pNotifyID,hDeviceAdded,hDeviceRemoved,usVendor,usProduct,usBCDVersion)
Parameters
- pNotifyID
- hDeviceAdded
- hDeviceRemoved
- usVendor
- usProduct
- usBCDVersion
Return Code
Errors
[0000] - NO_ERROR [0006] - ERROR_INVALID_HANDLE [0057] - ERROR_INVALID_PARAMETER [005F] - ERROR_INTERRUPT (95) [0064] - ERROR_TOO_MANY_SEMAPHORES [0067] - ERROR_TOO_MANY_SEM_REQUESTS (103) [0069] - ERROR_SEM_OWNER_DIED (105) [1B58] - USB_NOT_INIT (7000) [1B59] - USB_ERROR_NO_MORE_NOTIFICATTIONS (7001)