Sharing memory between User Mode and Kernel Mode

M

Matt

Hello,

Does anyone know how to share memory between User Mode and Kernel Mode?
Basically I want to define a char buffer in my driver code and be able to
read/write to it from a corresponding property page.
MSDN suggests creating a section object and sharing that by mapping it to
the two spaces. To create the section object, MSDN uses ZwCreateSection
which it says is declared in ntddk.h. I cannot find such a declaration and I
suspect that this function was included with the Windows XP DDK (not the
version I am using).

Does anyone know how to do this?

Thanks,
Matt
 
G

Gary G. Little

Unless the driver you are dealing with supports this you cannot do it, and
mostly you do not want to share memory between kernel and user modes
anyway. As to the function you mentioned, yes it is in the DDK.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top