Jungo WinDriver  
Official Documentation

◆ WDU_GetDeviceInfo()

DWORD DLLCALLCONV WDU_GetDeviceInfo ( _In_ WDU_DEVICE_HANDLE  hDevice,
_Outptr_ WDU_DEVICE **  ppDeviceInfo 
)

Gets configuration information from the device including all the descriptors in a WDU_DEVICE struct.

The caller should free *ppDeviceInfo after using it by calling WDU_PutDeviceInfo().

Parameters
[in]hDeviceA unique identifier for the device/interface.
[out]ppDeviceInfoPointer to a pointer to a buffer containing the device information.
Returns
WinDriver Error Code
DWORD dwStatus;
WDU_DEVICE *pDevice = NULL;
dwStatus = WDU_GetDeviceInfo(hDevice, &pDevice);
if (dwStatus)
{
printf("WDU_GetDeviceInfo failed. error 0x%lx "
"(\"%s\")\n", dwStatus, Stat2Str(dwStatus));
goto Exit;
}
printf("This device has %d configurations:\n",
/* For full code with usage of the WDU_DEVICE information struct,
please refer to the USB sample code (samples/c/usb_diag)*/
Exit:
if (pDevice)
free(pDevice);
#define NULL
Definition: kpstdlib.h:268
void __cdecl free(void *buf)
const char *DLLCALLCONV Stat2Str(_In_ DWORD dwStatus)
Retrieves the status string that corresponds to a status code.
UCHAR bNumConfigurations
Number of possible configurations.
Definition: windrvr_usb.h:206
WDU_DEVICE_DESCRIPTOR Descriptor
CDevice descriptor information structure.
Definition: windrvr_usb.h:259
DWORD DLLCALLCONV WDU_GetDeviceInfo(_In_ WDU_DEVICE_HANDLE hDevice, _Outptr_ WDU_DEVICE **ppDeviceInfo)
Gets configuration information from the device including all the descriptors in a WDU_DEVICE struct.