[WIN32K]
authorTimo Kreuzer <timo.kreuzer@reactos.org>
Wed, 23 Feb 2011 18:46:02 +0000 (18:46 +0000)
committerTimo Kreuzer <timo.kreuzer@reactos.org>
Wed, 23 Feb 2011 18:46:02 +0000 (18:46 +0000)
add code to register pre/post systemcall hooks. Its #if 0'ed to avoid unneccessary overhead. Can be enabled for debugging puposes.

svn path=/trunk/; revision=50879

reactos/subsystems/win32/win32k/main/dllmain.c

index 58afc05..f78bf19 100644 (file)
@@ -460,6 +460,12 @@ DriverEntry(
     /* 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,