Jump to content

UsbRegisterChangeNotification

From EDM2
Revision as of 22:07, 5 January 2017 by Martini (talk | contribs)

Description

Registers semaphores for a generic attach/detach notification of USB devices.

Syntax

ulrc=UsbRegisterChangeNotification(pNotifyID,hDeviceAdded,hDeviceRemoved)

Parameters

pNotifyID
hDeviceAdded
hDeviceRemoved

Return Code

Errors

 [0000] - NO_ERROR
 [0006] - ERROR_INVALID_HANDLE
 [0057] - ERROR_INVALID_PARAMETER
 [005F] - ERROR_INTERRUPT (95)
 [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)
 [FF06] - ERROR_INVALID_HANDLE
 [FF1F] - ERROR_GEN_FAILURE
 [FF57] - ERROR_INVALID_PARAMETER
 [FF64] - ERROR_TOO_MANY_SEMAPHORES

Remarks

Example Code


Related Functions