IOCTL_ADAPT_GET_DRIVER_VERSION

CYUSB3

IOCTL_ADAPT_GET_DRIVER_VERSION

Top Previous Next

Description

 

This command retrieves the version of the 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 ver;

 

DeviceIoControl(hDevice, IOCTL_ADAPT_GET_DRIVER_VERSION,

            &ver, sizeof (ver),

            &ver, sizeof (ver),

            &dwBytes, NULL);