]> git.michaelhowe.org Git - packages/o/openafs.git/commit
STABLE14-windows-hooks-20050418
authorJeffrey Altman <jaltman@secure-endpoints.com>
Tue, 19 Apr 2005 07:27:57 +0000 (07:27 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Tue, 19 Apr 2005 07:27:57 +0000 (07:27 +0000)
commit4d1a168275302b0b785f0093a267ceb395e3c8e2
tree51cb63ae89daa076b9c8404fa8cad18eafed41b0
parent0b3b9089c6b7b8e3c79c6dfa894c80e48d59558b
STABLE14-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.

(cherry picked from commit c0753e9ee7ff61ecd162cebbb30da7f0a8ca0bb6)
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