How to deal with usb GUID?
I want to retrieve the VID and PID of usb device,such as mp3 and u-disk.I know how to enum the device infomation by using some of windows API step by step.I just do not know how to define the GUID structure,how to pass the GUID as a parameter to the api,such as SetupDiGetClassDevs(),and especially how to marshal the type of those parameters.
Can you give me an detail example in C#?
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

bilnaadRank #2,169 · 655 reputationPosted Oct 22, 2004, 10:01 AM EDT
gongdehui62 reputationPosted Oct 23, 2004, 12:45 AM EDT