I want to get the virtual port number of usb driver. This property can be found in device manager name as bus relation or children.
if (SetupDiGetDeviceRegistryProperty(devInfo,
&devInfoData,
SPDRP_ADDRESS,
NULL,
(PBYTE)&dwAddr, //szName,
sizeof(dwAddr),
NULL))
{
int len=_stprintf( szBuf2,TEXT("\n%d"), dwAddr);
Can anybody guide.