mirror of
https://github.com/reactos/reactos.git
synced 2024-08-25 20:58:53 +00:00
[WIN32K]
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
This commit is contained in:
parent
9c7dc2437e
commit
d88c6cc49d
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue