Author: weiden
Date: Thu Nov 15 05:23:41 2007
New Revision: 30452
URL:
http://svn.reactos.org/svn/reactos?rev=30452&view=rev
Log:
Expose the pointer to the shared heap and the delta to the user mode mapping
Modified:
trunk/reactos/include/reactos/win32k/ntuser.h
trunk/reactos/subsystems/win32/win32k/ntuser/misc.c
Modified: trunk/reactos/include/reactos/win32k/ntuser.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/reactos/win32k/ntu…
==============================================================================
--- trunk/reactos/include/reactos/win32k/ntuser.h (original)
+++ trunk/reactos/include/reactos/win32k/ntuser.h Thu Nov 15 05:23:41 2007
@@ -58,6 +58,8 @@
typedef struct _W32PROCESSINFO
{
PVOID UserHandleTable;
+ HANDLE hUserHeap;
+ ULONG_PTR UserHeapDelta;
HINSTANCE hModUser;
PWINDOWCLASS LocalClassList;
PWINDOWCLASS GlobalClassList;
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/misc.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntuser/misc.c (original)
+++ trunk/reactos/subsystems/win32/win32k/ntuser/misc.c Thu Nov 15 05:23:41 2007
@@ -2494,6 +2494,9 @@
/* initialize it */
pi->UserHandleTable = gHandleTable;
+ pi->hUserHeap = W32Process->HeapMappings.KernelMapping;
+ pi->UserHeapDelta = (ULONG_PTR)W32Process->HeapMappings.KernelMapping
-
+ (ULONG_PTR)W32Process->HeapMappings.UserMapping;
if (InterlockedCompareExchangePointer(&W32Process->ProcessInfo,
pi,