SyncFrame

This function sends a SYNC_FRAME request to a USB device.

Syntax

USB_TRANSFER SyncFrame( USB_HANDLE hDevice, LPTRANSFER_NOTIFY_ROUTINE lpStartAddress,
LPVOID
lpvNotifyParameter, DWORD dwFlags, UCHAR bEndpoint, LPWORD lpwFrame );

Parameters

hDevice
[IN] Handle to a USB device.
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] Specifies either of the values USB_NO_WAIT or 0.
bEndpoint
[IN] Specifies the endpoint number.
lpwFrame
[OUT] Specifies the frame number.

Return Values

A USB_TRANSFER handle indicates success. NULL indicates failure.

Remarks

This function initiates a control transfer to a USB device, requesting that the device send a synchronization frame. Isochronous endpoints use synchronization frames to synchronize a data stream.

This function is defined in the Mousedrv.cpp file.

See Also

AbortTransfer, GetTransferStatus, IsTransferComplete