How to map private pages from one process into another one?

Hi,
I’m thinking about the way to map memory pages of
one process into virtual memory of another process. Is there a way to
map pages backed by a page file from one process to another?

Wbr,
Dmitry

Is MmMapLockedPagesSpecifyCache what your need?
You’ll have to call it in different process context. Anyway, use memory
mapped file in processes will be better and easier.

best regards,
Lu Lin
TTC senior engineer
http://ttcone.com
Inside Programming
http://lu0.126.com
----- Original Message -----
From: “Dmitry Bazhenov”
To: “Windows System Software Devs Interest List”
Sent: Saturday, December 10, 2005 7:21 PM
Subject: [ntdev] How to map private pages from one process into another one?

Hi,
I’m thinking about the way to map memory pages of
one process into virtual memory of another process. Is there a way to
map pages backed by a page file from one process to another?

Wbr,
Dmitry


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com

There is need to map pages that are backed by a page file. For
example, when I mapped some region with copy-on-write access and there
were writes into that region. How can I map that region then?

Wbr,
Dmitry

l> Is MmMapLockedPagesSpecifyCache what your need?
l> You’ll have to call it in different process context. Anyway, use
memory
l> mapped file in processes will be better and easier.

l> best regards,
l> Lu Lin
l> TTC senior engineer
l> http://ttcone.com
l> Inside Programming
l> http://lu0.126.com
l> ----- Original Message -----
l> From: “Dmitry Bazhenov”
l> To: “Windows System Software Devs Interest List”

l> Sent: Saturday, December 10, 2005 7:21 PM
l> Subject: [ntdev] How to map private pages from one process into
another one?

l> Hi,
l> I’m thinking about the way to map memory pages of
l> one process into virtual memory of another process. Is there a way
to
l> map pages backed by a page file from one process to another?

l> Wbr,
l> Dmitry

>There is need to map pages that are backed by a page file. For

example, when I mapped some region with copy-on-write access and there
were writes into that region. How can I map that region then?

Is there are requirement to do this in kernel mode? This is trivial in UM.

Loren

Hi Loren!

There is no requirement to do this in kernel mode. User mode is more
preferable. But the question is in the feasibility to do certain
things like that I am asking about. It doesn’t seem to me trivial to
do this in user mode.
Pages with COW access are not belong to a mapping since they were
written to. Thus, you cannot use mapping functions to access their
contents. Though, you can use read-write memory functions, but it is
not what I want. I want to map those pages.

Wbr,
Dmitry

LW> Is there are requirement to do this in kernel mode? This is
trivial in UM.

LW> Loren

No, you can only do ReadProcessMemory.

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com

----- Original Message -----
From: “Dmitry Bazhenov”
To: “Windows System Software Devs Interest List”
Sent: Saturday, December 10, 2005 2:21 PM
Subject: [ntdev] How to map private pages from one process into another one?

Hi,
I’m thinking about the way to map memory pages of
one process into virtual memory of another process. Is there a way to
map pages backed by a page file from one process to another?

Wbr,
Dmitry


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com