Hi,
I writed, a long time ago, a CE 2.11 stream interface driver. today, i use
source code and compile it with PB 5.0. My driver work fine but,

On each IOCTRL call , the driver call MapPtrToProcess. I use it to map the
input parameter. This parameter is a pointer to a structure.

I've see in the documentation that the MapPtrToProcess is deprecated. Use
MapCallerPtr function instead. But the MapCallerPtr is use to validate
parameter, not to map adress into the caller process. Do i must use
MapPrtToProcess again?

Thank you

Re: MapPtrToProcess vs MapCallerPtr by Tom

Tom
Tue Sep 28 15:04:54 CDT 2004

MapCallerPtr does return the mapped version of the pointer, just as
MapPtrToProcess did. However, MapCallerPtr validates the parameters to
prevent code in a malicious process from using the driver call to overwrite
memory that doesn't belong to it.


Tom Gensel (eMVP)

Do have an opinion on the effectiveness of Microsoft Windows Mobile and
Embedded newsgroups? Let us know!
https://www.windowsembeddedeval.com/community/newsgroups