FileName Parsing in CreateFile

How to parse file name in IRP_MJ_CREATE .When there is search patter appended in file name and example are like this.Dir excuted in root directory of file system.

  1. dir
    FileName /*

  2. dir *.*
    FileName -/*.*/*.*

> FileName /*

FileName -/*.*/*.*

I think that you’ll find that most filesystems return an error when they get
given a path like that.

I’ve never really worked out why the code feels it needs to do this, but its
being doing it for more than a decade…