problem with file name

Hi all,
Now i am in trouble, that is, the fileobject->filename is different in pre_create and post_create, so which one is correct, why does it happen? The following is what happened to my filter:
pre_create:filename = c:\test\a.txt
post_create: filename = c:\test

And will the following happen:
pre_create: filename = c:\test
post_create: filename = c:\test\a.txt

OR
pre_create: filename = c:\test\a.txt
post_create: filename = c:\test22\a.txt

help me, please, thank you!

The name in the fileobject is only valid during pre-create, not in
post-create or any other dispatch handler. It is very possible, and does
happen in several instances, where the underlying filesystem will change the
fileobject->FileName contents.

I think there is an entry to this question in the IFS FAQ. If not, then I
think it has gained enough hits to merit one.

Pete

Kernel Drivers
Windows Filesystem and Device Driver Consulting
www.KernelDrivers.com
(303)546-0300

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:bounce-264357-
xxxxx@lists.osr.com] On Behalf Of zymoonstone@163.com
Sent: Friday, September 29, 2006 7:36 PM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] problem with file name

Hi all,
Now i am in trouble, that is, the fileobject->filename is different in
pre_create and post_create, so which one is correct, why does it happen?
The following is what happened to my filter:
pre_create:filename = c:\test\a.txt
post_create: filename = c:\test

And will the following happen:
pre_create: filename = c:\test
post_create: filename = c:\test\a.txt

OR
pre_create: filename = c:\test\a.txt
post_create: filename = c:\test22\a.txt

help me, please, thank you!


Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com

Hi,

Si tienes problemas, podrías usar

status = FltGetFileNameInformation( Data,


FLT_FILE_NAME_NORMALIZED | FLT_FILE_NAME_QUERY_DEFAULT,


&filePath );

if (!NT_SUCCESS( status ))

return FLT_POSTOP_FINISHED_PROCESSING;

FltParseFileNameInformation( filePath );

Dentro de la estructura FLT_FILE_NAME_INFORMATION

en FinalComponent, obtendrás el mismo resultado.

Saludos

--


Atentamente,

style="font-size: 10pt; font-family: Arial;" lang="ES-PE">Atentamente,<o:p></o:p>

style="font-size: 10pt; font-family: Arial;" lang="ES-PE"> <o:p></o:p>

SAMUEL RAYA<o:p></o:p>

Jefe
de Dpto. Investigación y
Desarrollo<o:p></o:p>

face="Arial">S2F ENTERTAINMENT<o:p></o:p>

style="font-size: 8pt; font-family: Arial; color: rgb(255, 153, 0);"
lang="EN-US">style="color: rgb(255, 153, 0);">http://www.s2f-entertainment.com/<o:p></o:p>

lang="EN-US">Telf: (511) 95664321<o:p></o:p>


LLama Gratis a cualquier PC del Mundo.
Llamadas a fijos y móviles desde 1 céntimo por minuto.
http://es.voice.yahoo.com

Por favor uso inglés cuando poste a NTFSD.

Why, my spanish is as bad as my english!

m.

S2F Entertainment wrote:

Hi,

Si tienes problemas, podrías usar

status = FltGetFileNameInformation( Data,

FLT_FILE_NAME_NORMALIZED | FLT_FILE_NAME_QUERY_DEFAULT,

&filePath );

if (!NT_SUCCESS( status ))
return FLT_POSTOP_FINISHED_PROCESSING;

FltParseFileNameInformation( filePath );

Dentro de la estructura FLT_FILE_NAME_INFORMATION
en FinalComponent, obtendrás el mismo resultado.

Saludos

*Atentamente,*

* *

SAMUEL RAYA

Jefe de Dpto. Investigación y Desarrollo

S2F ENTERTAINMENT

http://www.s2f-entertainment.com/

Telf: (511) 95664321


Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: xxxxx@comcast.net
To unsubscribe send a blank email to xxxxx@lists.osr.com
______________________________________________ LLama Gratis a
cualquier PC del Mundo. Llamadas a fijos y móviles desde 1 céntimo por
minuto. http://es.voice.yahoo.com

Hi again,

If you have problems, you could use:

status = FltGetFileNameInformation( Data,


FLT_FILE_NAME_NORMALIZED | FLT_FILE_NAME_QUERY_DEFAULT,


&filePath );

if (!NT_SUCCESS( status ))

return FLT_POSTOP_FINISHED_PROCESSING;

FltParseFileNameInformation( filePath );

Winthin structure FLT_FILE_NAME_INFORMATION

in FinalComponent, you will obtain the same result.

Greetings

--


Atentamente,

style="font-size: 10pt; font-family: Arial;" lang="ES-PE">Atentamente,<o:p></o:p>

style="font-size: 10pt; font-family: Arial;" lang="ES-PE"> <o:p></o:p>

SAMUEL RAYA<o:p></o:p>

Jefe
de Dpto. Investigación y
Desarrollo<o:p></o:p>

face="Arial">S2F ENTERTAINMENT<o:p></o:p>

style="font-size: 8pt; font-family: Arial; color: rgb(255, 153, 0);"
lang="EN-US">style="color: rgb(255, 153, 0);">http://www.s2f-entertainment.com/<o:p></o:p>

lang="EN-US">Telf: (511) 95664321<o:p></o:p>


LLama Gratis a cualquier PC del Mundo.
Llamadas a fijos y móviles desde 1 céntimo por minuto.
http://es.voice.yahoo.com