"Juan Lang" juan.lang@gmail.com writes:
+static DWORD SETUPDI_DevNameToDevID(LPCWSTR devName) +{
- LPCWSTR ptr;
- DWORD devNameLen = lstrlenW(devName), devInst = 0;
- BOOL valid = TRUE;
- TRACE("%s\n", debugstr_w(devName));
- for (ptr = devName; valid && *ptr && ptr - devName < devNameLen; )
- {
- if (isdigitW(*ptr))
- {
devInst <<= 8;
This won't do what you want. You'd need *= 10 if the id is really stored in decimal, though 0000 looks more like it should be in hex.
This won't do what you want. You'd need *= 10 if the id is really stored in decimal, though 0000 looks more like it should be in hex.
You're right. It is decimal. Thanks. --Juan