alloc mem in kernel mode free it in user mode

Hi!

Can I allocate memory in kernel mode and free it in user mode?
Or the other way?

thx
Andreas M.

You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Neither. Memory allocated in kernel mode cannot be referenced in user mode
at all. Memory allocated in user mode is visible in the kernel under proper conditions.

-DH

PS. Its probably true that you can attach/detach an entire shared segment in one mode
and free it in the other. Similarly Win2K Address Windowing Extensions probably can be
used in both modes.
----- Original Message -----
From:
To: “NT Developers Interest List”
Sent: Friday, January 05, 2001 9:26 AM
Subject: [ntdev] alloc mem in kernel mode free it in user mode

> Hi!
>
> Can I allocate memory in kernel mode and free it in user mode?
> Or the other way?
>
> thx
> Andreas M.
> —
> You are currently subscribed to ntdev as: xxxxx@syssoftsol.com
> To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Hi,

It is not possible to free Kernel mode memory in User Mode.
If this is the case so many Destructive programms can try to crash the
system.
It is the protection given by NT.

Regards,
Satish K.S

----- Original Message -----
From:
To: “NT Developers Interest List”
Sent: Friday, January 05, 2001 9:26 AM
Subject: [ntdev] alloc mem in kernel mode free it in user mode

> Hi!
>
> Can I allocate memory in kernel mode and free it in user mode?
> Or the other way?
>
> thx
> Andreas M.
> —
> You are currently subscribed to ntdev as: xxxxx@aalayance.com
> To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Depends on what you mean by this. It is possible to use the Rtl,Heap
call in the kernel to allocate memory to a process, then have the process
free the memory. The other way is possible also. Note this memory
is for a given process. Check out http://www.sysinternals.com/native.htm
for a sample program that uses the Rtl…Heap calls. Then look at the
Win32 heap calls for their counterparts.

Don Burn
Windows 2000 Driver and Filesystem Consulting

----- Original Message -----
From:
To: “NT Developers Interest List”
Sent: Friday, January 05, 2001 9:26 AM
Subject: [ntdev] alloc mem in kernel mode free it in user mode

> Hi!
>
> Can I allocate memory in kernel mode and free it in user mode?
> Or the other way?
>
> thx
> Andreas M.
> —
> You are currently subscribed to ntdev as: xxxxx@acm.org
> To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com