Cannot open file --error code :0xc0000043

Hi all,
When some one move a file from folder1 to folder2. I block it at
IRP_MJ_SET_INOFRMATION and want to copy this file to folder3. But I cannot
open this file there for read(I need to write the content to the copy file
in folder3), always got “0xC0000043” --STATUS_SHARING_VIOLATION.

And I tried to use ObOpenObjectByPointer() to get the file handle for
ZwReadFile().
but the system dead there.

Anyone got an idea?

Is it possible to create an new IRP to set this file’s attributes then open
again or send IRP to read?

Thanks.

Laura


Do You Yahoo!?

Get your free @yahoo.com address at http://mail.yahoo.com

Then I recommend to forget Zw calls and write
your own routines for read, query information
and query security. Then, in copy routine,
you’ll read the file (and its attributes) through
a file object and using your routines, while
create and write operations can be done through
handle using standard Zw file routines.

Does it makes sense for you?

Paul

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of gaoren
Sent: Tuesday, July 09, 2002 10:02 PM
To: File Systems Developers
Subject: [ntfsd] Cannot open file --error code :0xc0000043

Hi all,
When some one move a file from folder1 to folder2. I block it at
IRP_MJ_SET_INOFRMATION and want to copy this file to folder3. But I
cannot open this file there for read(I need to write the content to the
copy file in folder3), always got “0xC0000043”
–STATUS_SHARING_VIOLATION.

And I tried to use ObOpenObjectByPointer() to get the file handle for
ZwReadFile(). but the system dead there.

Anyone got an idea?

Is it possible to create an new IRP to set this file’s attributes then
open again or send IRP to read?

Thanks.

Laura


Do You Yahoo!?

Get your free @yahoo.com address at http://mail.yahoo.com


You are currently subscribed to ntfsd as: xxxxx@compelson.com
To unsubscribe send a blank email to %%email.unsub%%