Sharing memory between User Mode and Kernel Mode

  • Thread starter Thread starter Matt
  • Start date Start date
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
 
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.
 
Back
Top