Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista Drivers > Intercept subdirectory creation in the minifilter driver

Reply
Thread Tools Display Modes

Intercept subdirectory creation in the minifilter driver

 
 
Eugene
Guest
Posts: n/a

 
      07-05-2010
Hi, All
Is there any way to intercept subdirectory creation in the minifilter driver
preoperation (or postoperation) callback routine? I track all calls with
MajorFunction == IRP_MJ_WRITE but when subdirectory is created, DesiredAccess
(Data->Iopb->Parameters.Create.SecurityContext->DesiredAccess) value is set
to 0x100001 (FILE_READ_DATA/FILE_LIST_DIRECTORY | SYNCHRONIZE) and any write
access is not specified.

Thanks, Eugene.
 
Reply With Quote
 
 
 
 
Eugene
Guest
Posts: n/a

 
      07-05-2010
Thanks, Don,
Sorry for mistake, of course i'm tracking calls with IRP_MJ_CREATE.

"Don Burn" wrote:

> Directories are created with IRP_MJ_CREATE so I am not sure why you are
> looking at write calls. If you are not aware file system questions are
> best answered on the NTFSD forum hosted at http://www.osronline.com/ That
> is the list where all the file system people (including a number from
> Microsoft) hang out.
>
>
> Don Burn (MVP, Windows DKD)
> Windows Filesystem and Driver Consulting
> Website: http://www.windrvr.com
> Blog: http://msmvps.com/blogs/WinDrvr
>



 
Reply With Quote
 
Scott Noone
Guest
Posts: n/a

 
      07-06-2010
You need to inspect the create disposition, not the desired access. Search
for disposition here:

http://msdn.microsoft.com/en-us/libr...30(VS.85).aspx

And follow the link to see the available options.

You can see the FASTFAT source for an example of extracting the disposition
from the create options.

(Also, Don's advice of going to NTFSD is good)

-scott

--
Scott Noone
Consulting Associate
OSR Open Systems Resources, Inc.
http://www.osronline.com


"Eugene" <> wrote in message
news:B73FE3C3-B3CE-4BAC-9A87-...
> Thanks, Don,
> Sorry for mistake, of course i'm tracking calls with IRP_MJ_CREATE.
>
> "Don Burn" wrote:
>
>> Directories are created with IRP_MJ_CREATE so I am not sure why you are
>> looking at write calls. If you are not aware file system questions are
>> best answered on the NTFSD forum hosted at http://www.osronline.com/
>> That
>> is the list where all the file system people (including a number from
>> Microsoft) hang out.
>>
>>
>> Don Burn (MVP, Windows DKD)
>> Windows Filesystem and Driver Consulting
>> Website: http://www.windrvr.com
>> Blog: http://msmvps.com/blogs/WinDrvr
>>

>
>

 
Reply With Quote
 
Eugene
Guest
Posts: n/a

 
      07-06-2010
Thank you very much, Done!

All works fine.

Eugene

"Scott Noone" wrote:

> You need to inspect the create disposition, not the desired access. Search
> for disposition here:
>
> http://msdn.microsoft.com/en-us/libr...30(VS.85).aspx
>
> And follow the link to see the available options.
>
> You can see the FASTFAT source for an example of extracting the disposition
> from the create options.
>
> (Also, Don's advice of going to NTFSD is good)
>
> -scott
>
> --
> Scott Noone
> Consulting Associate
> OSR Open Systems Resources, Inc.
> http://www.osronline.com


 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Game Compatibility BCurrey Windows Vista Games 6 11-29-2007 08:11 PM
BUGCODE_USB_DRIVER with external USB HDD PHILIPS Deathwing00 Windows Vista Hardware 11 06-15-2007 07:02 PM
Going Golfing but not with Vista markbyrn Windows Vista Games 15 03-08-2007 10:59 AM
americas army stuttering under vista premium ernie Windows Vista Games 0 02-27-2007 10:20 PM
problem in dxdiag Peewee64 Windows Vista Games 0 02-14-2007 09:49 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59