Click here to Skip to main content
15,922,894 members
Home / Discussions / Hardware & Devices
   

Hardware & Devices

 
AnswerRe: Help for key board Pin
toxcct25-Jul-06 0:15
toxcct25-Jul-06 0:15 
AnswerRe: Help for key board Pin
Mike Dimmick25-Jul-06 1:04
Mike Dimmick25-Jul-06 1:04 
QuestionAM2 vs 939 Pin
hint_5424-Jul-06 6:21
hint_5424-Jul-06 6:21 
AnswerRe: AM2 vs 939 Pin
Dan Neely24-Jul-06 7:02
Dan Neely24-Jul-06 7:02 
AnswerRe: AM2 vs 939 Pin
MatthysDT26-Jul-06 0:54
MatthysDT26-Jul-06 0:54 
QuestionXP Problem Pin
rajmani21-Jul-06 20:10
rajmani21-Jul-06 20:10 
AnswerRe: XP Problem Pin
Dan Neely24-Jul-06 2:32
Dan Neely24-Jul-06 2:32 
QuestionHow to get USB device address? Pin
linshi20-Jul-06 22:47
linshi20-Jul-06 22:47 


for (index=0; SetupDiEnumDeviceInterfaces(deviceInfo, 0, (LPGUID)&GUID_CLASS_USB, index, &DeviceInterfaceData); index++) {
memset(tempstr, 0, 1024);
deviceDetailData = (PSP_DEVICE_INTERFACE_DETAIL_DATA)tempstr;
deviceDetailData->cbSize = sizeof(SP_DEVICE_INTERFACE_DETAIL_DATA);
SetupDiGetDeviceInterfaceDetail(deviceInfo, &DeviceInterfaceData, deviceDetailData, 1024, &requiredLength, NULL);

hUSBHandle = CreateFile(deviceDetailData->DevicePath, GENERIC_READ | GENERIC_WRITE, 0, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
CloseHandle(hUSBHandle);
}

I would like enumerate all usb devices and get their device address.
How could I do?

I counld use the following codes to get DeviceAddress.
DeviceIoControl(hHubDevice,IOCTL_USB_GET_NODE_CONNECTION_INFORMATION,connectionInfo, nBytes,connectionInfo,nBytes,&nBytes, NULL) ;
But how to get device address without through usbHub.

Thanks and regards

AnswerRe: How to get USB device address? Pin
mmhu21-Jul-06 2:35
mmhu21-Jul-06 2:35 
QuestionHow to access the register's value when using the IAMVideoProAmp Pin
retinex20-Jul-06 20:39
retinex20-Jul-06 20:39 
AnswerRe: How to access the register's value when using the IAMVideoProAmp Pin
retinex20-Jul-06 22:32
retinex20-Jul-06 22:32 
QuestionHow to retrieve USB flash drive mount point Pin
mmhu20-Jul-06 12:09
mmhu20-Jul-06 12:09 
Questionhard disk Pin
jitenderbansal19-Jul-06 20:02
jitenderbansal19-Jul-06 20:02 
AnswerRe: hard disk Pin
stanlymt19-Jul-06 21:08
stanlymt19-Jul-06 21:08 
GeneralRe: hard disk Pin
Ed.Poore19-Jul-06 22:46
Ed.Poore19-Jul-06 22:46 
AnswerRe: hard disk Pin
Hamid_RT2-Aug-06 20:41
Hamid_RT2-Aug-06 20:41 
AnswerMessage Closed Pin
2-Mar-22 22:05
scott roger2-Mar-22 22:05 
QuestionAdvanced server 2000 RAID broken - please help Pin
Vaclav17-Jul-06 10:51
Vaclav17-Jul-06 10:51 
QuestionAsk for help for Non PnP ISA driver Pin
zouchao111216-Jul-06 3:54
zouchao111216-Jul-06 3:54 
AnswerRe: Ask for help for Non PnP ISA driver Pin
fat_boy27-Jul-06 4:12
fat_boy27-Jul-06 4:12 
QuestionFrame Grabber Pin
mehmetned12-Jul-06 3:55
mehmetned12-Jul-06 3:55 
AnswerRe: Frame Grabber Pin
Dave Kreskowiak12-Jul-06 4:17
mveDave Kreskowiak12-Jul-06 4:17 
QuestionApple Xserve G5 Vs IBM Pin
campbells12-Jul-06 3:16
campbells12-Jul-06 3:16 
AnswerRe: Apple Xserve G5 Vs IBM Pin
Mike Dimmick16-Jul-06 6:07
Mike Dimmick16-Jul-06 6:07 
QuestionVideo Ram Pin
samira forooghi8-Jul-06 1:14
samira forooghi8-Jul-06 1:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.