Language
|
Description
|
C/C++
|
typedef void (__stdcall *PTRANSFER_COMPLETION_ROUTINE)(
| ULONG dwNumberOfBytesTransfered);
|
|
Delphi
|
TTRANSFER_COMPLETION_ROUTINE = procedure (ErrorCode : Longint;
NumberOfBytesTransfered : Longint); stdcall;
|
VB
|
Sub CompletionRoutine(ByVal ErrorCode As Long, ByVal NumberOfBytesTransfered As Long)
|
Parameters
| If transfer was successful error code is zero.
|
| dwNumberOfBytesTransfered
|
| Number of bytes that were transferred during operation.
|
Description
This function is callback that is used with UsbTransferAsync function. It is called when the asynchronous input and output (I/O) operation is completed or canceled.
Note
In Visual Basic use AddressOf operator to handle callback to UsbTransferAsync.
|