Topic: File System Minifilter and a file at CLOSING
Specification of the previous subject. I save to a file in everyone IRP_MJ_WRITE. With it all is excellent. I add it in the linked list, whether my function checks is not present there such at present, and writes to a broad gull, whether there was it (that is it is changed already existing) or the new is created. There all is more or less perfectly in order. However when I start in IRP_MJ_CLEANUP to search for it in this list coincidence and is not found out. With IRP_MJ_CLOSE - the same. Which meant in the pre-previous paragraph? In the beginning was so: pFileObject = *Data-> Iopb-> TargetFileObject;... add_to_list (..., &pFileObject) As well as advised in the previous subject. (And as I understood it). But with it there was a problem, like as for the same open file at write them it turned out 2 (found out when made through %d) - that one number another. And for simple FILE_OBJECT, pointerless - there is no operator ==. Therefore passed on fileObject. FsContext More this problem was not, however in IRP_MJ_CLOSE all the same quitted nothing, and, actually, in IRP_MJ_CLOSE this FsContext simply is always equal 0 as showed it . What it is possible to invent? To me it should be stored between write and close.