IssueBulkTransfer
This function initiates a bulk transfer with a USB device.
Syntax
USB_TRANSFER IssueBulkTransfer( USB_PIPE hPipe, LPTRANSFER_NOTIFY_ROUTINE lpStartAddress,
LPVOID lpvNotifyParameter, DWORD dwFlags, DWORD dwBufferSize, LPVOID lpvBuffer, ULONG uBufferPhysicalAddress );
Parameters
- hPipe
- [IN] Handle to an open USB pipe.
- lpStartAddress
- [IN] Pointer to the address, which may be NULL, of a callback routine.
- lpvNotifyParameter
- [IN] Pointer to the parameter to pass to a callback routine.
- dwFlags
- [IN] Flags for the transfer. These are declared in the Usbtypes.h header file.
- dwBufferSize
- [IN] Specifies the size of the data buffer, in bytes.
- lpvBuffer
- [IN/OUT] Pointer to the data buffer. If a physical buffer address is specified, this must contain the virtual address of the buffer.
- uBufferPhysicalAddress
- [IN/OUT] Specifies the physical address, which may be NULL, of the data buffer.
Return Values
A USB_TRANSFER handle indicates success. NULL indicates failure.
Remarks
This function initiates a bulk transfer to a USB device on the specified endpoint.
This function is defined in the Mousedrv.cpp file.
See Also
AbortTransfer, GetTransferStatus, IsTransferComplete