> ----------
From: xxxxx@vba.com.by[SMTP:xxxxx@vba.com.by]
Reply To: xxxxx@lists.osr.com
Sent: Wednesday, February 05, 2003 11:03 AM
To: xxxxx@lists.osr.com
Subject: [ntfsd] RE: How can I get the current dirctory in a file
syst em filter driver?As it was said many times on this list, PFILE_OBJECT->FileName field is
guaranteed to be valid only in IRP_MJ_CREATE dispatch routine. It may not
be
valid even on IRP_MJ_CREATE completion. But related file object is already
created, possibly a long time before, so nothing can guarantee, that
PFILE_OBJECT->RelatedFileObject->FileName is still valid.
Yes, that’s exactly the reason why I asked. Both SFilter and Filemon (last
available sources) access it directly so I wanted to know if there isn’t an
exception for RelatedFileObject. Now it is clear how to use it, thanks.
Best regards,
Michal Vodicka
STMicroelectronics Design and Application s.r.o.
[michal.vodicka@st.com, http:://www.st.com]