Identification

Hi,

Before calling Default handler of IRP_MJ_CREATE I want to identify wheather the File is Exists already or not ? Can anybody suggest me better methods.

Thanks in Advance,
Satish K.S


You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com

For a local file, the FS will return FILE_OPENED or FILE_CREATED or
FILE_OVERWRITTEN in IoStatus->Information field.
If you want to PROTECT the files, you must split it into two calls,
one for FILE_OPEN case, and one for FILE_CREATE case, depending on what
you need. You will also need to split calls on LanMan servers, as it
will not return anything in the Info field.
You can also, open the parent directory, and send directory query
IRPs.

Regards, Dejan.

Satish wrote:

Hi, Before calling Default handler of IRP_MJ_CREATE I want to identify
wheather the File is Exists already or not ? Can anybody suggest me
better methods. Thanks in Advance,Satish K.S—
You are currently subscribed to ntfsd as: xxxxx@ptt.yu
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com


Kind regards, Dejan M. CEO Alfa Co. www.alfaunits.co.yu and
www.register.co.yu
E-mail : xxxxx@ptt.yu, xxxxx@register.co.yu and
xxxxx@alfaunits.co.yu
ICQ# : 56570367
Professional file&system related components and libraries for Win32
developers.
Alfa File Monitor - #1 file monitoring system for Win32 developers.
Alfa File Protector - #1 file protection and hiding system for Win32
developers.
Alfa Units - #1 file and system handling units for Delphi.


You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Thank u. It is working Fine.

Regards,
Satish K.S

For a local file, the FS will return FILE_OPENED or FILE_CREATED or
FILE_OVERWRITTEN in IoStatus->Information field.
If you want to PROTECT the files, you must split it into two calls,
one for FILE_OPEN case, and one for FILE_CREATE case, depending on what
you need. You will also need to split calls on LanMan servers, as it
will not return anything in the Info field.
You can also, open the parent directory, and send directory query
IRPs.

Regards, Dejan.

Satish wrote:

> Hi, Before calling Default handler of IRP_MJ_CREATE I want to identify
> wheather the File is Exists already or not ? Can anybody suggest me
> better methods. Thanks in Advance,Satish K.S—
> You are currently subscribed to ntfsd as: xxxxx@ptt.yu
> To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com


Kind regards, Dejan M. CEO Alfa Co. www.alfaunits.co.yu and
www.register.co.yu
E-mail : xxxxx@ptt.yu, xxxxx@register.co.yu and
xxxxx@alfaunits.co.yu
ICQ# : 56570367
Professional file&system related components and libraries for Win32
developers.
Alfa File Monitor - #1 file monitoring system for Win32 developers.
Alfa File Protector - #1 file protection and hiding system for Win32
developers.
Alfa Units - #1 file and system handling units for Delphi.


You are currently subscribed to ntfsd as: xxxxx@aalayance.com
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com