Download WinDriver v6.20 User`s Guide

Transcript
362
A Function Reference
R ETURN VALUE
Returns WDL_SUCCESS (0) on success, or an appropriate WDL_STATUS error
code otherwise.
R EMARKS
Callbacks are defined as follows:
typedef void (__cdecl *WDL_CALLBACK)(WDL_HANDLE handle, void *context);
Where handle is the handle to the HID object performing the callback, and context
is a pointer to parameter as received from WDL_Init() [A.10.3].
E XAMPLE
WDL_CALLBACK_OPS ops;
ZeroMemory(&ops,sizeof(ops));
ops.cbConnect=OnConnect;
ops.cbDisconnect=OnDisconnect;
WDL_SetNotificationCallback(myhandle,&ops);