Author: tkreuzer
Date: Wed Feb 23 18:46:02 2011
New Revision: 50879
URL:
http://svn.reactos.org/svn/reactos?rev=50879&view=rev
Log:
[WIN32K]
add code to register pre/post systemcall hooks. Its #if 0'ed to avoid unneccessary
overhead. Can be enabled for debugging puposes.
Modified:
trunk/reactos/subsystems/win32/win32k/main/dllmain.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] Wed Feb 23 18:46:02
2011
@@ -460,6 +460,12 @@
/* Register our per-process and per-thread structures. */
PsEstablishWin32Callouts((PWIN32_CALLOUTS_FPNS)&CalloutData);
+#if 0 // DBG
+ /* Register service hook callbacks */
+ KdSystemDebugControl('CsoR', DbgPreServiceHook, ID_Win32PreServiceHook, 0, 0,
0, 0);
+ KdSystemDebugControl('CsoR', DbgPostServiceHook, ID_Win32PostServiceHook, 0,
0, 0, 0);
+#endif
+
/* Create the global USER heap */
GlobalUserHeap = UserCreateHeap(&GlobalUserHeapSection,
&GlobalUserHeapBase,