that 1 isnt made for cmake i think because it misses

i tryed it with the highschoolsoftware leaked version instead of the zer0mem0ry one
it comes with a batch file
then you have a project file but vc2010 ask for a convert
that means the actual file might not compile
then its about to search for the right vc version at first but i dont have all the versions around at the moment

so i went for the convert option
but when i try to compile:
1>NMAKE : fatal error U1077: '"c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\ml.exe"' : return code '0x1'
1> Stop.
1>NMAKE : fatal error U1077: '"c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\nmake.exe"' : return code '0x2'
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.MakeFile.Targets(38,5): error MSB3073: The command ""C:\WRK-v1.2\build.bat" x86 C:\WRK-v1.2\" exited with code -1.

saying nothing about error lines missing files it just say that

NULL is just a other word for 0

#define NULL 0

with STATUS its a similiar problem

"NTSTATUS Status;"

is a space holder it place nop�s

paramter "PVCB"
is here just search in the project file:

"typedef struct _VCB"

classical functions in the function info tells what the paramter is is for in inputs the function out is given out by this function

what kewaitforsingleobject should do you find at ms page

yes that condistion is made

IrpSp->Parameters.Create.Options >> 24) == FILE_OPEN
this access options and right shifts >> 24
if this is equal to "FILE_OPEN" aka 1 "#define FILE_OPEN 0x00000001" condition is meet

to be more precise
IrpSp->FileObject->FileName.Length == 0
IrpSp->Parameters.Create.Options >> 24) == FILE_OPEN
IrpSp->Parameters.Create.Options & FILE_DIRECTORY_FILE) == 0

if not all are meet this this if statement is not taken

that suppose to be a offset to the mutex in structure Vcb , that you given to this function
it is coming from
that being a major function in the driver

but having cmake for a cmake file looks similiar error�s