none
Regular expression in file system minifilter driver RRS feed

  • Question

  • Hello,

    I know that <regex> template class is used in user mode to match regular expression.

    My questions are,

    1. Is there any way to match regular expression in minifilter driver?

    2. Is there any microsoft's support libary to match regular expression?

    Thanks in advance.





    • Edited by Sachin Kute Tuesday, December 8, 2015 8:45 AM
    Tuesday, December 8, 2015 8:43 AM

Answers

  • Microsoft does not provide a regular expression library for mini-filters.  Depending on what you are doing there are some FsRtlXXX routines that can help.  Look at FsRtlIsNameInExpression and FsRtlIsDbcsInExpression.  FsRtlIsFatDbcsLegal and FsRtlIsFatHpfsLegal can in some cases help.  Finally there are a number of routines FsRtlIsXXX to check whether a character is legal for a specific filesystem or is a wildcard.

     

    Don Burn Windows Driver Consulting Website: http://www.windrvr.com

    Tuesday, December 8, 2015 12:35 PM

All replies

  • Microsoft does not provide a regular expression library for mini-filters.  Depending on what you are doing there are some FsRtlXXX routines that can help.  Look at FsRtlIsNameInExpression and FsRtlIsDbcsInExpression.  FsRtlIsFatDbcsLegal and FsRtlIsFatHpfsLegal can in some cases help.  Finally there are a number of routines FsRtlIsXXX to check whether a character is legal for a specific filesystem or is a wildcard.

     

    Don Burn Windows Driver Consulting Website: http://www.windrvr.com

    Tuesday, December 8, 2015 12:35 PM
  • Thank you sir for your valuable reply.
    Wednesday, February 10, 2016 6:48 AM