CM_Get_Device_ID gets correct values from win7 but not xp

Posted by Jon W. Jones on Stack Overflow See other posts from Stack Overflow or by Jon W. Jones
Published on 2010-06-07T21:59:40Z Indexed on 2010/06/07 22:02 UTC
Read the original article Hit count: 362

Filed under:

When using CM_Get_Device_ID(...) I am getting the correct value from windows 7. When using windows xp I am getting an incorrect value. For Example, on xp I get "USB\VID_2132&PID_0001\5&36FF4167&0&7" and on 7 I get "USB\VID_2132&PID_0001\413031000576". The value after the \ on PID is our serial number and it is correct on 7 but xp keeps giving back what appears to be a nonsensical value.

My question is has anyone else encountered this and know of a workaround?

© Stack Overflow or respective owner

Related posts about c++