Upon the receive of IRP_MJ_WRITE, is it possbile to read some data of the
file by changing the MajorFunction to IRP_MJ_READ and call IoCallDriver()?
Besides the length, offset, what else do I need to change?
Upon the receive of IRP_MJ_WRITE, is it possbile to read some data of the
file by changing the MajorFunction to IRP_MJ_READ and call IoCallDriver()?
Besides the length, offset, what else do I need to change?
You need to change the buffer, of course.
Also, if the file is not opened for writing you might have a problem - and
you will if it CANNOT be opened for writing and you tried to change access in
IRP_MJ_CREATE.
Eric Chan wrote:
Upon the receive of IRP_MJ_WRITE, is it possbile to read some data of the
file by changing the MajorFunction to IRP_MJ_READ and call IoCallDriver()?Besides the length, offset, what else do I need to change?
You are currently subscribed to ntfsd as: xxxxx@alfasp.com
To unsubscribe send a blank email to %%email.unsub%%
–
Kind regards, Dejan M. www.alfasp.com
E-mail: xxxxx@alfasp.com ICQ#: 56570367
Alfa File Monitor - File monitoring library for Win32 developers.
Alfa File Protector - File protection and hiding library for Win32 developers.
Alfa Registry Monitor - Registry monitoring library for Win32 developers.
Alfa Registry Protector - Registry protection library for Win32 developers.
Sure. I have done it many times.
Jamey Kirby
StorageCraft, inc.
xxxxx@storagecraft.com
www.storagecraft.com
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Eric Chan
Sent: Wednesday, March 06, 2002 8:10 PM
To: File Systems Developers
Subject: [ntfsd] IRP_MJ_WRITE to IRP_MJ_READ
Upon the receive of IRP_MJ_WRITE, is it possbile to read some data of
the
file by changing the MajorFunction to IRP_MJ_READ and call
IoCallDriver()?
Besides the length, offset, what else do I need to change?
You are currently subscribed to ntfsd as: xxxxx@storagecraft.com
To unsubscribe send a blank email to %%email.unsub%%
Hi Jamey,
How did you do that? Are you using the original write IRP and modify its
structure to issue a read IRP? I would like to read with no cache option but
it always fail, especially when it is paging io write requests. Any sample
code is appreciated.
Regards,
Sin-Lam
Sure. I have done it many times.
Jamey Kirby
StorageCraft, inc.
xxxxx@storagecraft.com
www.storagecraft.com-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Eric Chan
Sent: Wednesday, March 06, 2002 8:10 PM
To: File Systems Developers
Subject: [ntfsd] IRP_MJ_WRITE to IRP_MJ_READUpon the receive of IRP_MJ_WRITE, is it possbile to read some data of
the
file by changing the MajorFunction to IRP_MJ_READ and call
IoCallDriver()?Besides the length, offset, what else do I need to change?
You are currently subscribed to ntfsd as: xxxxx@storagecraft.com
To unsubscribe send a blank email to %%email.unsub%%
You are currently subscribed to ntfsd as: xxxxx@lit.org.sg
To unsubscribe send a blank email to %%email.unsub%%