comparing unicode string

Hello,
I want to compare two unicode string with length in my driver.
It looks like what strnicmp does.
RtlCompareUnicodeString can not do it!
How can I do it?
thank you very much!

Look at NtStrSafe.h and utilize the safe string function instead. Or check out safe string operations in the online docs.


Gary G. Little
Seagate Technologies, LLC
“SCT$B!K(BLijianping” wrote in message news:xxxxx@windbg…
Hello,
I want to compare two unicode string with length in my driver.
It looks like what strnicmp does.
RtlCompareUnicodeString can not do it!
How can I do it?
thank you very much!</lijp>

_wcsnicmp
“SCT$B!K(BLijianping” wrote in message news:xxxxx@windbg…
Hello,
I want to compare two unicode string with length in my driver.
It looks like what strnicmp does.
RtlCompareUnicodeString can not do it!
How can I do it?
thank you very much!

Safe strings, see this:

http://www.wd-3.com/archive/SafeStrings.htm

HTH,

-Farooque Khan
http://farooque.150m.com

“SCT$B!K(BLijianping” wrote in message news:xxxxx@windbg…
Hello,
I want to compare two unicode string with length in my driver.
It looks like what strnicmp does.
RtlCompareUnicodeString can not do it!
How can I do it?
thank you very much!