ZwMapViewOfSection and InheritDispostion

Hi all,

I’m using ZwMapViewOfSection in order to
map some physical memory into a user mode
virtual address, I use the function flag InheritDispostion = TRUE
so far so good.
that user mode process creates another process
and passes the virtual pointer of the mapped view to it.

In my test of this scenario the pointer is invalid in the second
process.
I use create process like this:

memset(&stInfo,0,sizeof(stInfo));
stInfo.cb=sizeof(stInfo);

if(!CreateProcess(NULL,“C:\TESTb.EXE”,
NULL,
NULL,
TRUE,
CREATE_DEFAULT_ERROR_MODE,
NULL,
“C:\”,
&stInfo,
&prInfo))

thanks,
Tomer Goldberg