GetInterface

This function sends a request to a USB device for information about alternate device settings.

Syntax

USB_TRANSFER GetInterface( USB_HANDLE hDevice, LPTRANSFER_NOTIFY_ROUTINE lpStartAddress,
LPVOID
lpvNotifyParameter, DWORD dwFlags, UCHAR bInterfaceNumber, PUCHAR lpbAlternateSetting );

Parameters

hDevice
[IN] Handle to a USB device.
lpStartAddress
[IN] Non-null pointer to a pointer to a callback routine.
lpvNotifyParameter
[IN] Pointer to a parameter to pass to the callback routine.
dwFlags
[IN] Specifies either of the values USB_NO_WAIT or 0.
bInterfaceNumber
[IN] Specifies the interface number.
lpbAlternateSetting
[OUT] Filled in with current alternate setting value.

Return Values

A USB_TRANSFER handle indicates success. NULL indicates failure.

Remarks

This function initiates a control transfer to a USB device, requesting the alternate setting selected for the specified interface.

This function is defined in the Mousedrv.cpp file.

See Also

AbortTransfer, GetTransferStatus, IsTransferComplete, SetInterface