Maxim
Sun Oct 14 06:41:12 PDT 2007
Yes. In kernel land, call MmGetSystemAddressForMdlSafe on the MDL which
describes this user memory.
--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
maxim@storagecraft.com
http://www.storagecraft.com
"Anand Choubey" <AnandChoubey@discussions.microsoft.com> wrote in message
news:F84C7761-FE7E-48F0-B9A2-E2853B41CE87@microsoft.com...
> Hi
>
> Thank for your suggestion.
>
> If I allocate memory at user land then is it possible to access userland
> memory in DPCs????
> Please let me know.
> --
> With regards
> thanks
> Anand Choubey
>
>
> "Maxim S. Shatskih" wrote:
>
> > Why not allocate them in the app?
> >
> > --
> > Maxim Shatskih, Windows DDK MVP
> > StorageCraft Corporation
> > maxim@storagecraft.com
> >
http://www.storagecraft.com
> >
> > "Anand Choubey" <AnandChoubey@discussions.microsoft.com> wrote in message
> > news:0E88A603-DC60-4C04-8FA1-ACCFA83AAE57@microsoft.com...
> > > Hi,
> > >
> > > I am writing a NDIM IM driver. In order to communicate with user land
> > > application, I allocate 3 buffers on nonpaged memory 10 MB each.
> > >
> > > My driver gets success to allocate memory in first time only for all
buffers.
> > > Next time on wards, driver gets fail to allocate memory. I am very much
> > > sure that there is no any memory leak which I have tested.
> > >
> > > Please suggest me what should I do??
> > >
> > > Configuration OS:: XP SP2
> > > Ram:: 504 MB (8 MB shared)
> > > Processor:: 2.8 GHz Pentium
> > > --
> > > With regards
> > > thanks
> > > Anand Choubey
> >
> >