ZwMapViewOfSection question(s)

Hi all,
since the documentation on this funct.
is not so detailed

1.What does is the purpose of passing (HANDLE)-1 as the process handle?

2.When using “ViewShare” as the inharitance prameter, does this mean that
a child process can use the same virtual addresses as the parent process?

3.When the mapping process closes unexpectedly does the system unmap
that process virtaul addresses since they no longer exist?

thanks,
Tomer Goldberg

-----Original Message-----
From: Tomer Goldberg [mailto:tomerg22@012.net.il]
Sent: Monday, October 25, 2004 5:27 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] ZwMapViewOfSection question(s)

Hi all,
since the documentation on this funct.
is not so detailed

1.What does is the purpose of passing (HANDLE)-1 as the process handle?
[Devendra Singh] -1 is passed in as the handle of the target process,
designating the
“current process” as the target

2.When using “ViewShare” as the inharitance prameter, does this mean that
a child process can use the same virtual addresses as the parent process?

3.When the mapping process closes unexpectedly does the system unmap
that process virtaul addresses since they no longer exist?
[Devendra Singh] If I can remember correctly(Not very much sure) then it
won’t. You need to take care of this.

thanks,
Tomer Goldberg

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

(HANDLE)(-1) means - “current process”.

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

----- Original Message -----
From: Tomer Goldberg
To: Windows System Software Devs Interest List
Sent: Monday, October 25, 2004 3:56 PM
Subject: [ntdev] ZwMapViewOfSection question(s)

Hi all,
since the documentation on this funct.
is not so detailed

1.What does is the purpose of passing (HANDLE)-1 as the process handle?

2.When using “ViewShare” as the inharitance prameter, does this mean that
a child process can use the same virtual addresses as the parent process?

3.When the mapping process closes unexpectedly does the system unmap
that process virtaul addresses since they no longer exist?

thanks,
Tomer Goldberg

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