Author: jimtabor
Date: Mon Apr 14 05:51:53 2008
New Revision: 32949
URL:
http://svn.reactos.org/svn/reactos?rev=32949&view=rev
Log:
Attach global server information to process information.
Modified:
trunk/reactos/subsystems/win32/win32k/main/dllmain.c
trunk/reactos/subsystems/win32/win32k/ntuser/misc.c
trunk/reactos/subsystems/win32/win32k/ntuser/window.c
Modified: trunk/reactos/subsystems/win32/win32k/main/dllmain.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ma…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/main/dllmain.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/main/dllmain.c [iso-8859-1] Mon Apr 14 05:51:53
2008
@@ -37,6 +37,8 @@
HANDLE GlobalUserHeap = NULL;
PSECTION_OBJECT GlobalUserHeapSection = NULL;
+
+PSERVERINFO gpsi = NULL; // Global User Server Information.
extern ULONG_PTR Win32kSSDT[];
extern UCHAR Win32kSSPT[];
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 [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/ntuser/misc.c [iso-8859-1] Mon Apr 14 05:51:53
2008
@@ -13,6 +13,7 @@
#define NDEBUG
#include <debug.h>
+extern PSERVERINFO gpsi;
/*
* @unimplemented
@@ -414,6 +415,7 @@
pi->hUserHeap = W32Process->HeapMappings.KernelMapping;
pi->UserHeapDelta = (ULONG_PTR)W32Process->HeapMappings.KernelMapping
-
(ULONG_PTR)W32Process->HeapMappings.UserMapping;
+ pi->psi = gpsi;
if (InterlockedCompareExchangePointer(&W32Process->ProcessInfo,
pi,
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/window.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntuser/window.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/ntuser/window.c [iso-8859-1] Mon Apr 14 05:51:53
2008
@@ -33,6 +33,8 @@
#define NDEBUG
#include <debug.h>
+extern PSERVERINFO gpsi;
+
/* dialog resources appear to pass this in 16 bits, handle them properly */
#define CW_USEDEFAULT16 (0x8000)
@@ -49,6 +51,8 @@
NTSTATUS FASTCALL
InitWindowImpl(VOID)
{
+ gpsi = UserHeapAlloc(sizeof(SERVERINFO));
+ if (gpsi) RtlZeroMemory(gpsi, sizeof(SERVERINFO));
return STATUS_SUCCESS;
}