IOCTL_ADAPT_GET_ADDRESS |
Description
This command retrieves the USB address of the device from the Windows host controller driver.
A pointer to a 1-byte variable is passed as both the lpInBuffer and lpOutBuffer parameters to the DeviceIoControl( ) function.
The size of the variable (1) is passed in the nInBufferSize and nOutBufferSize parameters.
Example
DWORD dwBytes = 0; UCHAR DevAddr;
DeviceIoControl(hDevice, IOCTL_ADAPT_GET_ADDRESS, &DevAddr, sizeof (UCHAR), &DevAddr, sizeof (UCHAR), &dwBytes, NULL);
|