RE: Finding if IRM_MJ_CREATE is for a directory in filter driver

Hi Ronen,

In my experience the only sure way to know this is to ask the underlying
file system. So what I do is in the completion routine of the IRP_MJ_CREATE
I roll my own irp to query the attributes of the file, you can then check
for the directory attribute.

Ben Curley
Software Engineer
Data Encryption Systems Ltd.

Tel: +44 (0)1823 352357 (Main)
Tel: +44 (0)1823 358320 (Direct Dial)

Web: http://www.deslock.com

-----Original Message-----
From: Ron [mailto:xxxxx@hotmail.com]
Sent: 19 August 2003 17:06
To: File Systems Developers
Subject: [ntfsd] Finding if IRM_MJ_CREATE is for a directory in filter
driver

Hi,

How can I tell if the IRP_MJ_CREATE is for a directory? I have file system
driver for nt/2k/xp and I need to know if IRP_MJ_CREATE I get in my
attached dispatch is for a directory or not (I ignore it if its for a
file).

Thanks,
Ronen


You are currently subscribed to ntfsd as: xxxxx@des.co.uk
To unsubscribe send a blank email to xxxxx@lists.osr.com