Re: Getting Kernel Shared section object name in Appln
- From: "Anatoly Greenblatt" <anatoly_at_controlguard_dot_com>
- Date: Sun, 10 Sep 2006 23:51:26 +0300
Hi Chin,
To use data buffer between application and driver you can either allocate
buffer in the driver and map it to user space or allocate buffer in
application and lock it in kernel space. Either way is documented, see
MmProbeAndLockPages.
Anatoly.
"Chin" <chintin@xxxxxxxxx> wrote in message
news:1157950136.857426.78040@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi ,
I need to allocate memory in kernel mode , fill it and then user mode
application has to read from it.
I have created a named section object in kernel space with the name
"\\device\\sharedmemory" using ZwCreateSection function.
But the problem is when I use the function "CreateFileMapping", with
"\\device\\sharedmemory" as its last argument, in user mode application
, it fails to open the section object already created in the kernel
mode.
If I give different name than "\\device\\sharedmemory" in
ZwCreateSection in kernel mode driver, then ZwCreateSection function
fails.
I am not able to figure out the problem .
How to access the kernel mode memory from user mode.
Please help.
Thanking You
.
- Follow-Ups:
- Re: Getting Kernel Shared section object name in Appln
- From: Maxim S. Shatskih
- Re: Getting Kernel Shared section object name in Appln
- References:
- Prev by Date: Device Instace ID
- Next by Date: Re: Memory ordering and flag/state variables
- Previous by thread: Getting Kernel Shared section object name in Appln
- Next by thread: Re: Getting Kernel Shared section object name in Appln
- Index(es):
Relevant Pages
|