Hi,
I’ve tried all combinations I could think of to replace the
user’s buffer with my own during read/write on a network share - and
none worked.
What’s the right way to replace buffers in this situations? Do
note that there is no problem on Windows XP, it is Windows 2000 that is
problematic.
–
Kind regards, Dejan M. MVP for DDK
http://www.alfasp.com E-mail: xxxxx@alfasp.com
Alfa Transparent File Encryptor - Transparent file encryption services.
Alfa File Protector - File protection and hiding library for Win32
developers.
Alfa File Monitor - File monitoring library for Win32 developers.
Why not just generate a new IRP instead of replacing the user’s buffer?
Works for me.
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Dejan Maksimovic
Sent: Friday, May 02, 2003 11:08 AM
To: File Systems Developers
Subject: [ntfsd] Replacing buffers for Lanman operations
Hi,
I’ve tried all combinations I could think of to
replace the user’s buffer with my own during read/write on a
network share - and none worked.
What’s the right way to replace buffers in this
situations? Do note that there is no problem on Windows XP,
it is Windows 2000 that is problematic.
–
Kind regards, Dejan M. MVP for DDK
http://www.alfasp.com E-mail: xxxxx@alfasp.com
Alfa Transparent File Encryptor - Transparent file encryption
services. Alfa File Protector - File protection and hiding
library for Win32 developers. Alfa File Monitor - File
monitoring library for Win32 developers.
You are currently subscribed to ntfsd as: xxxxx@nryan.com
To unsubscribe send a blank email to xxxxx@lists.osr.com
Because I can reuse the IRP this way - do you set RequestorMode to
KernelMode?
Nicholas Ryan wrote:
Why not just generate a new IRP instead of replacing the user’s buffer?
Works for me.
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of Dejan Maksimovic
> Sent: Friday, May 02, 2003 11:08 AM
> To: File Systems Developers
> Subject: [ntfsd] Replacing buffers for Lanman operations
>
>
>
> Hi,
>
> I’ve tried all combinations I could think of to
> replace the user’s buffer with my own during read/write on a
> network share - and none worked.
>
> What’s the right way to replace buffers in this
> situations? Do note that there is no problem on Windows XP,
> it is Windows 2000 that is problematic.
>
> –
> Kind regards, Dejan M. MVP for DDK
> http://www.alfasp.com E-mail: xxxxx@alfasp.com
> Alfa Transparent File Encryptor - Transparent file encryption
> services. Alfa File Protector - File protection and hiding
> library for Win32 developers. Alfa File Monitor - File
> monitoring library for Win32 developers.
>
>
>
>
>
> —
> You are currently subscribed to ntfsd as: xxxxx@nryan.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
You are currently subscribed to ntfsd as: xxxxx@alfasp.com
To unsubscribe send a blank email to xxxxx@lists.osr.com
–
Kind regards, Dejan M. MVP for DDK
http://www.alfasp.com E-mail: xxxxx@alfasp.com
Alfa Transparent File Encryptor - Transparent file encryption services.
Alfa File Protector - File protection and hiding library for Win32
developers.
Alfa File Monitor - File monitoring library for Win32 developers.
Re-using an IRP this way is bad because the IRP you are re-using may be
an associated IRP. The filesystem assumes that the IRP it gets is a
master IRP. If it then tries to make associated IRPs off of this IRP,
bad things will happen.
I set RequestorMode to KernelMode because all my buffers are kernel
buffers.
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Dejan Maksimovic
Sent: Saturday, May 03, 2003 7:51 AM
To: File Systems Developers
Subject: [ntfsd] RE: Replacing buffers for Lanman operations
Because I can reuse the IRP this way - do you set
RequestorMode to KernelMode?
Nicholas Ryan wrote:
> Why not just generate a new IRP instead of replacing the user’s
> buffer? Works for me.
>
> - Nick Ryan
>
> > -----Original Message-----
> > From: xxxxx@lists.osr.com
> > [mailto:xxxxx@lists.osr.com] On Behalf Of Dejan
> > Maksimovic
> > Sent: Friday, May 02, 2003 11:08 AM
> > To: File Systems Developers
> > Subject: [ntfsd] Replacing buffers for Lanman operations
> >
> >
> >
> > Hi,
> >
> > I’ve tried all combinations I could think of to
replace the
> > user’s buffer with my own during read/write on a network
share - and
> > none worked.
> >
> > What’s the right way to replace buffers in this
situations?
> > Do note that there is no problem on Windows XP, it is
Windows 2000
> > that is problematic.
> >
> > –
> > Kind regards, Dejan M. MVP for DDK
> > http://www.alfasp.com E-mail: xxxxx@alfasp.com
> > Alfa Transparent File Encryptor - Transparent file encryption
> > services. Alfa File Protector - File protection and
hiding library
> > for Win32 developers. Alfa File Monitor - File monitoring library
> > for Win32 developers.
> >
> >
> >
> >
> >
> > —
> > You are currently subscribed to ntfsd as: xxxxx@nryan.com To
> > unsubscribe send a blank email to xxxxx@lists.osr.com
> >
>
> —
> You are currently subscribed to ntfsd as: xxxxx@alfasp.com To
> unsubscribe send a blank email to xxxxx@lists.osr.com
–
Kind regards, Dejan M. MVP for DDK
http://www.alfasp.com E-mail: xxxxx@alfasp.com
Alfa Transparent File Encryptor - Transparent file encryption
services. Alfa File Protector - File protection and hiding
library for Win32 developers. Alfa File Monitor - File
monitoring library for Win32 developers.
You are currently subscribed to ntfsd as: xxxxx@nryan.com
To unsubscribe send a blank email to xxxxx@lists.osr.com