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
15 * COMMON HEADERS _____________________________________________________________
20 #include <WINNT/AfsAppLib.h>
21 #include <WINNT/AfsClass.h>
25 * DEFINITIONS ________________________________________________________________
44 #define cb1MB 1048576L
48 #define ck1GB 1048576L
52 #define ck1TB (unsigned long)0x40000000 // 1073741824L == 1024^3
55 #define cszENDING_REPLICA TEXT(".readonly")
56 #define cszENDING_CLONE TEXT(".clone")
58 #define REGSTR_SETTINGS_BASE HKCU
59 #define REGSTR_SETTINGS_PATH TEXT("Software\\OpenAFS\\AFS Server Manager")
60 #define REGVAL_SETTINGS TEXT("Settings")
61 #define REGSTR_SETTINGS_PREFS TEXT("Software\\OpenAFS\\AFS Server Manager\\Preferences")
62 #define REGSTR_SETTINGS_CELLS REGSTR_SETTINGS_PREFS
66 * INCLUSIONS _________________________________________________________________
79 #define cszHELPFILENAME TEXT("TaAfsSvrMgr.hlp")
83 * STRUCTURES _________________________________________________________________
87 typedef enum // CHILDTAB
95 typedef struct // DISPLAYINFO
97 LONG cSplitter
; // splitter between servers and tabs
101 typedef struct // SERVER_PREF
105 short perWarnAggFull
; // ==0 to disable warning
106 short perWarnSetFull
; // ==0 to disable warning
107 BOOL fWarnSvcStop
; // ==FALSE to disable warning
108 BOOL fWarnSvrTimeout
; // ==FALSE to disable warning
109 BOOL fWarnSetNoVLDB
; // ==FALSE to disable warning
110 BOOL fWarnSetNoServ
; // ==FALSE to disable warning
111 BOOL fWarnAggNoServ
; // ==FALSE to disable warning
112 BOOL fWarnAggAlloc
; // ==FALSE to disable warning
119 } SERVER_PREF
, *LPSERVER_PREF
;
121 #define wVerSERVER_PREF MAKEVERSION(2,1)
124 typedef struct // SERVICE_PREF
129 TCHAR szLogFile
[ MAX_PATH
];
131 SERVICESTATUS ssLast
;
132 } SERVICE_PREF
, *LPSERVICE_PREF
;
134 #define wVerSERVICE_PREF MAKEVERSION(1,0)
137 typedef struct // AGGREGATE_PREF
140 short perWarnAggFull
; // ==0 to disable, ==-1 for svr default
141 BOOL fWarnAggAlloc
; // ==FALSE to disable warning
143 TCHAR szDevice
[ cchNAME
];
144 AGGREGATESTATUS asLast
;
146 } AGGREGATE_PREF
, *LPAGGREGATE_PREF
;
148 #define wVerAGGREGATE_PREF MAKEVERSION(2,1)
151 typedef struct // FILESET_PREF
154 short perWarnSetFull
; // ==0 to disable, ==-1 for svr default
156 FILESETSTATUS fsLast
;
158 } FILESET_PREF
, *LPFILESET_PREF
;
160 #define wVerFILESET_PREF MAKEVERSION(1,1)
163 typedef enum // ICONVIEW
168 } ICONVIEW
, *LPICONVIEW
;
195 // How is information viewed?
202 VIEWINFO viewAggMove
;
203 VIEWINFO viewAggCreate
;
204 VIEWINFO viewAggRestore
;
212 BOOL fCloseUnmonitors
;
213 BOOL fServerLongNames
;
214 BOOL fDoubleClickOpens
; // 0=Properties, 1=Open, 2=Depends (PreviewPane)
222 #define wVerGLOBALS_RESTORED MAKEVERSION(2,3)
226 extern GLOBALS_RESTORED gr
;
229 * OTHER INCLUSIONS ___________________________________________________________
234 #include "helpfunc.h"
238 * PROTOTYPES _________________________________________________________________
244 void PumpMessage (MSG
*lpm
);
246 // StartThread() accepts any 32-bit quantity as its second parameter;
247 // it uses '...' so you won't have to cast the thing regardless of what it
248 // is--an HWND fits through just as easily as an LPIDENT.
250 BOOL
cdecl StartThread (DWORD (WINAPI
*lpfnStart
)(PVOID lp
), ...);