From: Sushma on
>
> Neither is in WDM.
>
> Pend this IRP for all this long time.

Thanks for the replies.

Is it possible to copy the memory contents of MDL to my local buffer
and use that buffer? I wanted to create a new request/URB and submit
down the stack using that buffer.

For my requirement I cannot pend the IRP and need to complete it to
get the next one.

Regards,
Sushma

From: Don Burn on
You can copy the data the MDL points to, to a new buffer then use that
buffer to create a new MDL and use it.


Don Burn (MVP, Windows DKD)
Windows Filesystem and Driver Consulting
Website: http://www.windrvr.com
Blog: http://msmvps.com/blogs/WinDrvr



"Sushma" <sushma.yella(a)gmail.com> wrote in message
news:3d97ac7c-47e6-429a-89bc-e93659d40525(a)m35g2000prh.googlegroups.com:

> >
> > Neither is in WDM.
> >
> > Pend this IRP for all this long time.
>
>
> Thanks for the replies.
>
> Is it possible to copy the memory contents of MDL to my local buffer
> and use that buffer? I wanted to create a new request/URB and submit
> down the stack using that buffer.
>
> For my requirement I cannot pend the IRP and need to complete it to
> get the next one.
>
> Regards,
> Sushma


__________ Information from ESET Smart Security, version of virus
signature database 4874 (20100217) __________

The message was checked by ESET Smart Security.

http://www.eset.com


From: Maxim S. Shatskih on
> Is it possible to copy the memory contents of MDL to my local buffer
> and use that buffer?

Yes.

--
Maxim S. Shatskih
Windows DDK MVP
maxim(a)storagecraft.com
http://www.storagecraft.com

From: Sushma on

> You can copy the data the MDL points to, to a new buffer then use that
> buffer to create a new MDL and use it.
>

Which member of MDL structure I need to get the buffer. My
understanding is Mdl->StartVa + Mdl->ByteOffset would give me the base
address. Then I need to parse until Mdl->ByteCount which shall give me
the complete buffer.

Is this correct?

Regards,
Sushma




From: Maxim S. Shatskih on
> Which member of MDL structure I need to get the buffer.

MmGetSystemAddressForMdlSafe

--
Maxim S. Shatskih
Windows DDK MVP
maxim(a)storagecraft.com
http://www.storagecraft.com

First  |  Prev  |  Next  |  Last
Pages: 1 2 3
Prev: XPS Drv Sample - not working
Next: WinUSB error detection.