xxxxx@netcleantech.com wrote:
Hello Mattias,
Perhaps you could supply a little more info about this operation. I’m a
little lost in your words here(
).
If I’m understanding you correctly, and what your describing, sounds
kinda like a file_open/file_open_if type
logic error. I would suggest you have a second look at how your calling
FltCreateFile + flags, along with the operations
proceeding it. Sounds like your branched out in some sort of nested IF
statement where FltCreateFile could be called
differently in different branches of the “IF, ELSE, ELSEIF” statement…
Sorry, I can’t really express exactly what I’m thinking/too lazy to try.
If you could provide some debug info or code that
would really speed up the process. You have a logic problem in your code.
Hell, I’m just guessing for now, but on a Sunday morning - it’s the best
your going to get for now (without more info).
Good Luck and best wishes,
Matt
Hello
I try to cancel a creation of a file in PostCreat.
If I have a file named “image.jpeg†and try to copy the file it works and the name of the new file is “image – copy.jpeg†(my filter failed and it should cancel the creation of the file). If I then try to copy the first file “image.jpeg†again it does not work and no copy is made (my filter successfully cancel the creation of the file), but I can make a copy of the file “image – copy.jpeg†without problem (my filter failed again).
It seams that I can make a copy of a file if the name of the copy not exist. The default name of a file to be copied is “FileName – copy.jpeg and if that name exist I can not make a copy.
I use FltCancelFileOpen.
Is it a bug or is it me?
Or shall I use IRP to cancel the file open instead?
Regards
Mattias Bergkvist
NTFSD is sponsored by OSR
For our schedule debugging and file system seminars
(including our new fs mini-filter seminar) visit:
http://www.osr.com/seminars
You are currently subscribed to ntfsd as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com