IOCTL_ADAPT_GET_NUMBER_ENDPOINTS

CYUSB3

IOCTL_ADAPT_GET_NUMBER_ENDPOINTS

Top Previous Next

Description

 

This command retrieves the number of endpoints enumerated by the current interface / alternate interface setting.

 

A null pointer is passed as the lpInBuffer parameter to the DeviceIoControl( ) function. Zero is passed as the nInBufferSize parameter.

 

The address of an unsigned character is passed as the lpOutBuffer parameter to the DeviceIoControl( ) function. The size of the variable (1) is passed in the nOutBufferSize parameter.

 

 

Example

 

DWORD dwBytes = 0;

UCHAR endPts;

 

DeviceIoControl(hDevice, IOCTL_ADAPT_GET_NUMBER_ENDPOINTS,

            NULL, 0,

            &endPts, sizeof (endPts),

            &dwBytes, NULL);