IssueControlTransfer

This function initiates a control transfer with a USB device.

Syntax

USB_TRANSFER IssueControlTransfer( USB_PIPE hPipe, LPTRANSFER_NOTIFY_ROUTINE lpStartAddress,
LPVOID
lpvNotifyParameter, DWORD dwFlags, LPCVOID lpvControlHeader, 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.
lpvControlHeader
[IN] Pointer to control header ( 8 bytes ).
dwBufferSize
[IN] Specifies the size of data buffer.
lpvBuffer
[IN] Pointer to a data buffer. If a physical buffer address is specified, this must contain the virtual address of the buffer.
uBufferPhysicalAddress
[IN] 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 control transfer to a USB device on the specified endpoint.

This function is defined in the Mousedrv.cpp file.

See Also

AbortTransfer, GetTransferStatus, IsTransferComplete