The language used for the pattern string must be in regular expression
format - add an ‘*’ and you will see a pattern match.
The RE language here has five match characters: * ? < > "
* = zero or more characters
? = one character
< = zero or more characters with DOS semantics
= one character with DOS semantics
" = dot character with DOS semantics
(Verify these last three in ntifs.h, but I believe I got them correct
here).
Regards,
Tony
Tony Mason
Consulting Partner
OSR Open Systems Resources Inc.
http://www.osr.com
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Anurag Sarin
Sent: Thursday, August 12, 2004 11:48 AM
To: ntfsd redirect
Subject: [ntfsd] Substring Matching
Hi,
Sorry if this is too basics for you gurus , I am a starter.
I was querious why FsRtlIsDbcsInExpression is not giving TRUE and I do
not get success msg.
My intention here is too check for substring without using any C runtime
libararies functions like wstrstr().
PANSI_STRING myansistring;
ANSI_STRING File_Expression;
RtlInitAnsiString(&File_Expression,“\DEVICE\HARDDISKVOLUME1”);
DbgPrint(“\nContents of myansistring:%Z”,myansistring); \->
gives “\DEVICE\HARDDISKVOLUME1\Filename.text”
if ( TRUE==FsRtlIsDbcsInExpression( &File_Expression,
myansistring) )
{
DbgPrint("\nSuccess ");
}
Else
{
DbgPrint(“\nFailiure”);
}
Any suggestions will be very helpful.
Thanks & Regards,
Anurag
Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17
You are currently subscribed to ntfsd as: xxxxx@osr.com
To unsubscribe send a blank email to xxxxx@lists.osr.com