Re: Whar are invalid characters in a hardware or compatible id?



looking up the document for IRP_MN_QUERY_ID gives you this information, did
you even try to search this out onyour own?
<ddk>
If a driver returns an ID with an illegal character, the system will bug
check. Characters with the following values are illegal in an ID for this
IRP:

Less than 0x20 (' ')
Greater than 0x7F
Equal to 0x2C (',')

</ddk>



d


--
Please do not send e-mail directly to this alias. this alias is for
newsgroup purposes only.
This posting is provided "AS IS" with no warranties, and confers no rights.


"Stefan Kuhr" <kustt110@xxxxxx> wrote in message
news:ue1pzL19GHA.4404@xxxxxxxxxxxxxxxxxxxxxxx
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: "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)
  • Whar are invalid characters in a hardware or compatible id?
    ... 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 will work. ...
    (microsoft.public.development.device.drivers)
  • 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)