_wcsicmp
or
convert everything to UNICODE_STRINGs and use RtlCompareUnicodeString.
So after you find usbstor usb pnp strings what do you intend to do
with the usbstor device objects?
Mark Roddy
Not as “valuable” as he used to be.
On Tue, Oct 5, 2010 at 12:33 AM, wrote:
> Yes, Gary, I found about RtlStringCchXxxx or RtlStringCcbXxxx. But these concatenate, I believe, while I wanted to compare (strstr).
>
>
> —
> NTDEV is sponsored by OSR
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer
>
And you didn’t find RtlCompareMemory and the other variations?
Gary G. Little
H (952) 223-1349
C (952) 454-4629
xxxxx@comcast.net
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of
xxxxx@live.ca
Sent: Monday, October 04, 2010 11:33 PM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] Detecting mass storage devices
Yes, Gary, I found about RtlStringCchXxxx or RtlStringCcbXxxx. But these
concatenate, I believe, while I wanted to compare (strstr).
NTDEV is sponsored by OSR
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer
Gary and Mark,
Thanks for the “safe string” suggestions. I did not see RtlCompareUnicodeString in this summary list http://msdn.microsoft.com/en-us/library/ff563885(v=VS.85).aspx (hence my ignorance). I will give it a shot.
You don’t have the 7600.1 version of the WDK?
Gary G. Little
H (952) 223-1349
C (952) 454-4629
xxxxx@comcast.net
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of
xxxxx@live.ca
Sent: Tuesday, October 05, 2010 10:36 AM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] Detecting mass storage devices
Gary and Mark,
Thanks for the “safe string” suggestions. I did not see
RtlCompareUnicodeString in this summary list
http://msdn.microsoft.com/en-us/library/ff563885(v=VS.85).aspx (hence my
ignorance). I will give it a shot.
NTDEV is sponsored by OSR
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer
I have 7600.16385.1.
Why the question Gary? Is the Web page summary wrong?
The link you provide was for the safe string functions, it totally
ignores that UNICODE_STRING, ANSI_STRING and OEM_STRING were safe long
before Microsoft realized there was a problem. The page is an example
of here what is new, not here is what is good.
Don Burn (MVP, Windows DKD)
Windows Filesystem and Driver Consulting
Website: http://www.windrvr.com
Blog: http://msmvps.com/blogs/WinDrvr
“xxxxx@live.ca” wrote in message
news:xxxxx@ntdev:
> Gary and Mark,
>
> Thanks for the “safe string” suggestions. I did not see RtlCompareUnicodeString in this summary list http://msdn.microsoft.com/en-us/library/ff563885(v=VS.85).aspx (hence my ignorance). I will give it a shot.
Okay, thank you Don for the explanations.