2 * Copyright 2000, International Business Machines Corporation and others.
5 * This software has been released under the terms of the IBM Public
6 * License. For details, see the LICENSE file in the top-level source
7 * directory or online at http://www.openafs.org/dl/license10.html
10 #ifndef OPENAFS_WINNT_AFSD_AFSD_H
11 #define OPENAFS_WINNT_AFSD_AFSD_H 1
15 #include <afsconfig.h>
16 #include <afs/param.h>
18 BOOL InitClass(HANDLE);
19 BOOL InitInstance(HANDLE, int);
21 LONG APIENTRY MainWndProc(HWND, unsigned int, unsigned int, long);
22 BOOL APIENTRY About(HWND, unsigned int, unsigned int, long);
30 #include <afs/vldbint.h>
31 #include <afs/afsint.h>
32 #define FSINT_COMMON_XG
34 #include <afs/prs_fs.h>
36 #include "cm_config.h"
38 #include "cm_scache.h"
39 #include "cm_callback.h"
41 #include "cm_diskcache95.h"
42 #endif /* DISKCACHE95 */
45 #include "cm_aclent.h"
46 #include "cm_server.h"
47 #include "cm_volstat.h"
48 #include "cm_volume.h"
49 #include "cm_dcache.h"
50 #include "cm_access.h"
53 #include "cm_vnodeops.h"
55 #include "cm_daemon.h"
57 #include "smb_iocons.h"
60 #include "cm_memmap.h"
61 #include "cm_freelance.h"
62 #include "cm_performance.h"
64 #include "afsd_init.h"
65 #include "afsd_eventlog.h"
68 #define AFS_DAEMON_SERVICE_NAME AFSREG_CLT_SVC_NAME
69 #define AFS_DAEMON_EVENT_NAME AFSREG_CLT_SW_NAME
73 extern void afsi_log(char *pattern, ...);
75 /* globals from the base afsd */
77 extern int cm_logChunkSize;
78 extern int cm_chunkSize;
80 extern cm_volume_t *cm_rootVolumep;
82 extern cm_cell_t *cm_rootCellp;
84 extern cm_fid_t cm_rootFid;
86 extern cm_scache_t *cm_rootSCachep;
88 extern osi_log_t *afsd_logp;
90 extern fschar_t cm_mountRoot[];
91 extern DWORD cm_mountRootLen;
93 extern clientchar_t cm_mountRootC[];
94 extern DWORD cm_mountRootCLen;
96 extern char cm_CachePath[];
98 extern BOOL isGateway;
100 extern BOOL reportSessionStartups;
102 #ifdef AFS_FREELANCE_CLIENT
103 extern char *cm_FakeRootDir; // the fake root.afs directory
105 extern int cm_fakeDirSize; // size (in bytes) of fake root.afs directory
107 extern int cm_fakeDirCallback; // state of the fake root.afs directory. indicates
108 // if it needs to be refreshed
110 extern int cm_fakeGettingCallback; // 1 if currently updating the fake root.afs directory,
112 #endif /* AFS_FREELANCE_CLIENT */
114 extern int cm_dnsEnabled;
115 extern int cm_readonlyVolumeVersioning;
119 extern HANDLE WaitToTerminate;
121 extern int RDR_Initialized;
123 extern afs_uint32 smb_Enabled;
125 extern int cm_virtualCache;
127 #define DFS_SUPPORT 1
130 #define LOCK_TESTING 1
132 #define WORKER_THREADS 10
134 #define AFSD_HOOK_DLL "afsdhook.dll"
135 #define AFSD_INIT_HOOK "AfsdInitHook"
136 typedef BOOL ( APIENTRY * AfsdInitHook )(void);
137 #define AFSD_RX_STARTED_HOOK "AfsdRxStartedHook"
138 typedef BOOL ( APIENTRY * AfsdRxStartedHook )(void);
139 #define AFSD_SMB_STARTED_HOOK "AfsdSmbStartedHook"
140 typedef BOOL ( APIENTRY * AfsdSmbStartedHook )(void);
141 #define AFSD_STARTED_HOOK "AfsdStartedHook"
142 typedef BOOL ( APIENTRY * AfsdStartedHook )(void);
143 #define AFSD_DAEMON_HOOK "AfsdDaemonHook"
144 typedef BOOL ( APIENTRY * AfsdDaemonHook )(void);
145 #define AFSD_STOPPING_HOOK "AfsdStoppingHook"
146 typedef BOOL ( APIENTRY * AfsdStoppingHook )(void);
147 #define AFSD_STOPPED_HOOK "AfsdStoppedHook"
148 typedef BOOL ( APIENTRY * AfsdStoppedHook )(void);
150 #define SERVICE_CONTROL_CUSTOM_DUMP 128
151 #endif /* OPENAFS_WINNT_AFSD_AFSD_H */