[ros-diffs] [weiden] 30452: Expose the pointer to the shared heap and the delta to the user mode mapping

weiden at svn.reactos.org weiden at svn.reactos.org
Thu Nov 15 03:23:41 CET 2007


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/ntuser.h?rev=30452&r1=30451&r2=30452&view=diff
==============================================================================
--- 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/ntuser/misc.c?rev=30452&r1=30451&r2=30452&view=diff
==============================================================================
--- 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,




More information about the Ros-diffs mailing list