IOCTL_ADAPT_GET_CURRENT_FRAME

CYUSB3

IOCTL_ADAPT_GET_CURRENT_FRAME

Top Previous Next

Description

 

This command returns the current frame number from the host controller driver.

 

A pointer to a 4-byte variable is passed as both the lpInBuffer and lpOutBuffer parameters to the DeviceIoControl( ) function.

 

The size of the variable (4) is passed in the nInBufferSize and nOutBufferSize parameters.

 

Example

 

DWORD dwBytes = 0;

ULONG CurrentFrame;

DeviceIoControl(hDevice, IOCTL_ADAPT_GET_CURRENT_FRAME,

                            DeviceIoControl(hDevice, IOCTL_ADAPT_GET_CURRENT_FRAME,

               &CurrentFrame, sizeof (ULONG),

               &CurrentFrame, sizeof (ULONG),

               &dwBytes, NULL);