Let say,
C:\Foo is the protected folder, so that no files or directories can be created
within this protected folder. Any idea ?
Currently, I am able to stop files from being created, dragged in as well as
folder from begin dragged into C:\Foo.
However, new directory can be created under C:\Foo via:
-
When right click and select New->Folder
-
C:\Foo> md “New folder”
Is there other ways to prevent directory creation in C:\Foo ?
Please advise.
Aside special permission under User mode, is it possible to do so via Kernel mode ?
Please advise.
I found similar thread such as:
http://www.osronline.com/showThread.cfm?link=160151
However, it does not have any precise information.
…apologizing, after it is my fault to place a return under PreCreate callback routine such as:
if( FlagOn(Data->Iopb->Parameters.Create.Options, FILE_DIRECTORY_FILE) )
{
return FLT_PREOP_SUCCESS_NO_CALLBACK;
}
by removing above instruction, things working as normal now :o)