Click here to Skip to main content
15,894,460 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: Send and Receive Problem Pin
David Crow21-May-10 3:05
David Crow21-May-10 3:05 
QuestionHow to track rename sheet event in Excel ? Pin
Gaurav171020-May-10 20:38
Gaurav171020-May-10 20:38 
QuestionExtract System's register's value by usiong 'C' language Pin
kushMuchaal20-May-10 18:39
kushMuchaal20-May-10 18:39 
AnswerRe: Extract System's register's value by usiong 'C' language Pin
Aescleal20-May-10 20:11
Aescleal20-May-10 20:11 
GeneralRe: Extract System's register's value by usiong 'C' language Pin
kushMuchaal20-May-10 22:53
kushMuchaal20-May-10 22:53 
GeneralRe: Extract System's register's value by usiong 'C' language Pin
kushMuchaal20-May-10 23:14
kushMuchaal20-May-10 23:14 
GeneralRe: Extract System's register's value by usiong 'C' language Pin
kushMuchaal20-May-10 23:55
kushMuchaal20-May-10 23:55 
AnswerRe: Extract System's register's value by usiong 'C' language Pin
Aescleal21-May-10 1:01
Aescleal21-May-10 1:01 
Ah, okay.

Despite working for a harddisk manufacturer I've never dug around in USB. If you're using Windows then http://www.emmet-gray.com/Articles/USB_SerialNumbers.htm[^] seems to have all the recipes you'd need to grab the serial number from a USB 2.0 device. One problem is that the code is written in VB, but it gives the sequence of Win32 calls you'd need to make to get the information (and it's a bit convoluted - hopefully someone more in the know can point you at a simpler method).

If you're using another OS then there's probably a similar recipe out there somewhere.

Another alternative would be to write a device driver and tickle the device directly through it's I/O ports and see how it giggles. However you'll need to know more than most mortals should need to know about USB - and having seen a colleague of mine go bald reading the OHCI, UHCI and EHCI specs I wouldn't wish that on anyone.

Cheers,

Ash

PS: Perhaps posting another question with "Reading configuration data (e.g. serial number) from a USB device" might attract someone who knows what they're talking about.
GeneralRe: Extract System's register's value by usiong 'C' language Pin
kushMuchaal21-May-10 1:57
kushMuchaal21-May-10 1:57 
GeneralRe: Extract System's register's value by usiong 'C' language Pin
Aescleal21-May-10 2:27
Aescleal21-May-10 2:27 
GeneralRe: Extract System's register's value by usiong 'C' language Pin
kushMuchaal21-May-10 2:44
kushMuchaal21-May-10 2:44 
GeneralRe: Extract System's register's value by usiong 'C' language Pin
Richard MacCutchan21-May-10 3:08
mveRichard MacCutchan21-May-10 3:08 
GeneralRe: Extract System's register's value by usiong 'C' language Pin
David Crow21-May-10 3:08
David Crow21-May-10 3:08 
AnswerRe: Extract System's register's value by usiong 'C' language Pin
Aescleal21-May-10 6:03
Aescleal21-May-10 6:03 
AnswerRe: Extract System's register's value by usiong 'C' language Pin
Richard MacCutchan20-May-10 21:15
mveRichard MacCutchan20-May-10 21:15 
GeneralRe: Extract System's register's value by usiong 'C' language Pin
kushMuchaal20-May-10 23:54
kushMuchaal20-May-10 23:54 
QuestionGetWindowRect() for CEdit Pin
Anu_Bala20-May-10 18:37
Anu_Bala20-May-10 18:37 
AnswerRe: GetWindowRect() for CEdit Pin
ThatsAlok20-May-10 19:34
ThatsAlok20-May-10 19:34 
GeneralRe: GetWindowRect() for CEdit Pin
Anu_Bala20-May-10 20:57
Anu_Bala20-May-10 20:57 
GeneralRe: GetWindowRect() for CEdit Pin
ThatsAlok20-May-10 23:31
ThatsAlok20-May-10 23:31 
QuestionHelp to develop a service to get UPS information by unmanaged C++ code in Win7 Pin
ndkit20-May-10 17:27
ndkit20-May-10 17:27 
AnswerRe: Help to develop a service to get UPS information by unmanaged C++ code in Win7 Pin
Garth J Lancaster20-May-10 18:10
professionalGarth J Lancaster20-May-10 18:10 
AnswerRe: Help to develop a service to get UPS information by unmanaged C++ code in Win7 Pin
David Crow21-May-10 3:10
David Crow21-May-10 3:10 
GeneralRe: Help to develop a service to get UPS information by unmanaged C++ code in Win7 Pin
ndkit23-May-10 23:48
ndkit23-May-10 23:48 
AnswerRe: Help to develop a service to get UPS information by unmanaged C++ code in Win7 Pin
Rick York21-May-10 10:17
mveRick York21-May-10 10:17 

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.