Tom's Hardware > Forum > Windows XP > Device Driver > Shared memory between driver and user

Shared memory between driver and user

Forum Windows XP : Device Driver - Shared memory between driver and user

Tom's Hardware: Over 1.4 million members in 6 different countries available to answer all your high-tech questions. Sign up now! Its free!
Word :    Username :           
 

Archived from groups: microsoft.public.windowsxp.device_driver.dev (More info?)

 

Hi,



I been read the 'Sharing Memory Between Drivers and Applications' from the
NT insider, and I have a serious doubt about how to call a driver function
within the contest of the user application.



The problem is that for calling MmMapLockedPagesSpecifyCache() function I
need to be in the user space, but I think that I must do this call from the
driver.



Textually, the article says:



'.you must call the function from within the context of the process into
which you want to map the buffer.'



How can I do this?



Thanks in advance.

Sponsored Links
Register or log in to remove.

Archived from groups: microsoft.public.windowsxp.device_driver.dev (More info?)

 

Of course MmMapLockedPagesSpecifyCache can't be caled from usermode.
An usermode app calls ReadFile, WriteFile, or ioctl; the driver that handles
these requests, receives them (in kernel mode) in the context of user application.
And you thought it's simple... Not quite :)
--PA


"sansegu" <sansegu@hotmail.com> wrote in message news:co1pbk$dcj$1@nsnmrro2-gest.nuria.telefonica-data.net...
> Hi,
>
>
>
> I been read the 'Sharing Memory Between Drivers and Applications' from the
> NT insider, and I have a serious doubt about how to call a driver function
> within the contest of the user application.
>
>
>
> The problem is that for calling MmMapLockedPagesSpecifyCache() function I
> need to be in the user space, but I think that I must do this call from the
> driver.
>
>
>
> Textually, the article says:
>
>
>
> '.you must call the function from within the context of the process into
> which you want to map the buffer.'
>
>
>
> How can I do this?
>
>
>
> Thanks in advance.
>
>
>
>
>
>

Reply to Anonymous
Tom's Hardware > Forum > Windows XP > Device Driver > Shared memory between driver and user
Go to:

There are 1225 identified and unidentified users. To see the list of identified users, Click here.

Please mind

You are about to answer a thread that has been inactive for more than 6 months.
If you still wish to proceed, please ensure that your posting is original and does not duplicate or overlap any prior responses to this thread.

Add a reply Cancel
Sponsored links
  • Ask the community now
  • Publish
Ad
They won a badge
Join us in greeting them