Whar are invalid characters in a hardware or compatible id?



Hello everyone,

I need to know an ASCII character that is definitely invalid in a hardware or compatible ID. Our software has to send the hardware IDs and compatible IDs of a Windows client via a Webservice interface across the wire. Somewhere in the remote logic a third party LDAP parser comes into play which is so buggy that it gets entirely confused by backslashes as they appear in hardware IDs or compatible IDs. So as a workaround I would like to replace all backslashes in the hardware IDs I find via setupapi and cfgmgr32 APIs with a surrogate character so the LDAP parser (hopefully) will work. When the result is then written into the database behind all the stuff, we would then dutifully convert all surrogate characters back into backslashes.

I noticed that devcon uses the asterisk symbol ('*') as a wildcard character and that it uses the @ symbol to distinguish instance IDs from hardware or compatible IDs. Can I therefore safely assume that * and @ are invalid characters in a hardware ID so I can safely use them as my surrogate character?


Any help appreciated,

--
Stefan Kuhr

"Lesen schadet der Dummheit"
.



Relevant Pages

  • Re: Whar are invalid characters in a hardware or compatible id?
    ... I need to know an ASCII character that is definitely invalid in a hardware ... Our software has to send the hardware IDs and compatible ... IDs of a Windows client via a Webservice interface across the wire. ... appear in hardware IDs or compatible IDs. ...
    (microsoft.public.development.device.drivers)
  • Re: "Generic USB Input Device Support" for keydisks?
    ... What I was thinking looking at your idea is that most of the Compatible Ids ... already got the right DB of Compatible Ids and Hardware Ids matched. ... > installed and registry is truly modified with info contained in inf file ...
    (microsoft.public.windowsxp.embedded)
  • Location of a character in a string
    ... Version: IDS 10 ... I looked at all string manipulation function that IDS provides but ... Something that gives me the location of a character in a string. ... using regular expression. ...
    (comp.databases.informix)
  • Re: Simple string search
    ... can you explain the following regex? ... I am not sure about this 12 between brackets. ... means "any character" ... in this example the ids ...
    (comp.lang.perl.misc)
  • Re: Location of a character in a string
    ... I looked at all string manipulation function that IDS provides but ... Something that gives me the location of a character in a string. ... Carsten Haese ...
    (comp.databases.informix)