IOCTL_ADAPT_GET_FRIENDLY_NAME

CYUSB3

IOCTL_ADAPT_GET_FRIENDLY_NAME

Top Previous Next

Description

 

This command retrieves the string associated with the device in the [Strings] section of the CyUSB3.inf file.

 

A pointer to an array of unsigned characters is passed as both the lpInBuffer and lpOutBuffer parameters to the DeviceIoControl( ) function.

 

The size of the array is passed in the nInBufferSize and nOutBufferSize parameters.

 

 

Example

 

DWORD dwBytes = 0;

PUCHAR FriendlyName = new UCHAR[256];

 

DeviceIoControl(hDevice, IOCTL_ADAPT_GET_FRIENDLY_NAME,

            FriendlyName, 256,

            FriendlyName, 256,

            &dwBytes, NULL);

 

delete[] FriendlyName;