Re: Getting Kernel Shared section object name in Appln
- From: "anshul makkar" <anshul.m@xxxxxxxxxxx>
- Date: Tue, 12 Sep 2006 09:15:43 +0530
Hi,
I am also doing the same task of allocating the memory in kernel and using
that memory in my application.
The above task has been done by using section objects.
In application , your CreateFileMapping is failing! And that is true also.
It should fail as the memory object has already been created in the driver .
So instead use, OpenFileMapping directly without using CreateFileMapping.
"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
.
- References:
- Prev by Date: IoFreeWorkItem and return function.
- Next by Date: Re: OEMUNI & OEMUI, communication at start and end
- Previous by thread: Re: Getting Kernel Shared section object name in Appln
- Next by thread: Which is the best way for KM-UM interaction
- Index(es):
Relevant Pages
|