IOCTL_ADAPT_GET_DEVICE_NAME

CYUSB3

IOCTL_ADAPT_GET_DEVICE_NAME

Top Previous Next

Description

 

This command retrieves the Product string descriptor value for the attached device.

 

A pointer to a character buffer is passed as both the lpInBuffer and lpOutBuffer parameters to the DeviceIoControl( ) function.

 

The length of the buffer is passed in the nInBufferSize and nOutBufferSize parameters.

 

 

Example

 

DWORD dwBytes = 0;

ULONG len = 256;

UCHAR *buf = new UCHAR[len];

 

DeviceIoControl(hDevice, IOCTL_ADAPT_GET_DEVICE_NAME,

            buf, len,

            buf, len,

            &dwBytes, NULL);

 

delete[] buf;