windows-hooks-20050418
authorJeffrey Altman <jaltman@secure-endpoints.com>
Tue, 19 Apr 2005 07:26:27 +0000 (07:26 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Tue, 19 Apr 2005 07:26:27 +0000 (07:26 +0000)
commitc0753e9ee7ff61ecd162cebbb30da7f0a8ca0bb6
tree54676388c94b969ba1f7d3300dbf26d302ada2c2
parentf4f8176464bab9256786135df2f09fe8b129e7c1
windows-hooks-20050418

Add new hooks from "AfsdHook.dll" to the afsd_service.exe

   AfsdInitHook - where you currently have one

   AfsdRxStartedHook - after RxInit but before SmbInit

   AfsdSmbStartedHook - after SmbInit

   AfsdBkDaemonHook - called by the BkDaemon thread and is executed once per
                      cycle

   AfsdStoppingHook - called just after a shutdown event has been
                      received but before any shutdown has been performed

   AfsdStoppedHook - called just after all shutdown operations after
                     completed but before the service terminates

The type of the function is

   BOOL ( APIENTRY * AfsdHook )(void)

in all cases.  Returning FALSE will cause the service to shutdown.
src/WINNT/afsd/afsd.c
src/WINNT/afsd/afsd.h
src/WINNT/afsd/afsd_service.c
src/WINNT/afsd/cm_daemon.c
src/WINNT/afsd/smb.c