Gary
Thu Jul 22 08:10:10 CDT 2004
What is in IRP->AssociatedIrp.SystemBuffer is strictly controlled by how you
set buffering in the definition of the IOCTL. Like Thomas said ... read the
docs. Here is a summary of buffering:
METHOD_NEITHER (access at == PASSIVE_LEVEL)
SystemBuffer = Input
UserBuffer = Output
METHOD_BUFFERED (access at >= DISPATCH_LEVEL)
SystemBuffer = Input = Output
UserBuffer = Best left alone
METHOD_IN/OUT_DIRECT (access at >= DISPATCH_LEVEL)
SystemBuffer = Input
MdlAddress = Output
--
Gary G. Little
Seagate Technologies, LLC
"Thomas F. Divine [DDK MVP]" <tdivine@NOpcausaSPAM.com> wrote in message
news:uWE1hw2bEHA.1004@TK2MSFTNGP11.phx.gbl...
> Lookup the topic "Using I/O Control Codes" in the DDK Help file.
>
> Good luck,
>
> Thomas F. Divine
>
http://www.pcausa.com
>
> "M Taha Masood" <m.tahamasood@gmail.com> wrote in message
> news:a350f7d.0407211125.3f613dab@posting.google.com...
> > Hello,
> > I want to send an ioctl to muy device driver where i want to send a
> > buffer of information to the device driver and then get some
> > information back from the driver , is this possible ? Can i supply
> > input and output bufer in DeviceIoControl at the same time? when i try
> > to do this , which of the passed user buffers will be given to my
> > driver's ioctl processor in the following:
> >
> > IRP->AssociatedIrp.SystemBuffer
> >
> > what is the correct way to do this?
> >
> > regards
> > Taha
>
>