IoCreateStreamFileObject

Hi,

I am using the approach of IoCreateStreamFileObject() for creating a file
object in IRP_MJ_CREATE dispatch routine. Please if you can point out to me
that which data need to be filled in from the old file object to my new
stream file object.

Thanks
Suhail


Express yourself instantly with MSN Messenger! Download today - it’s FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/

I think you can RtlCopyMemory the source file object
to the destination, except for:

FileObject->Flags (You should preserve the original value)
FileObject->FileName (You have to allocate a new one
using paged pool.

L.