~ubuntu-branches/ubuntu/warty/openafs/warty

« back to all changes in this revision

Viewing changes to src/WINNT/client_config/afs_config.h

  • Committer: Bazaar Package Importer
  • Author(s): Sam Hartman
  • Date: 2004-01-10 16:37:33 UTC
  • Revision ID: james.westby@ubuntu.com-20040110163733-jvr0n1uahshlb1uu
Tags: upstream-1.2.11
ImportĀ upstreamĀ versionĀ 1.2.11

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright 2000, International Business Machines Corporation and others.
 
3
 * All Rights Reserved.
 
4
 * 
 
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
 
8
 */
 
9
 
 
10
#ifndef AFS_CONFIG_H
 
11
#define AFS_CONFIG_H
 
12
 
 
13
 
 
14
/*
 
15
 * INCLUSIONS _________________________________________________________________
 
16
 *
 
17
 */
 
18
 
 
19
#include <WINNT/TaLocale.h>
 
20
#include <windows.h>
 
21
#include <commctrl.h>
 
22
#include <regstr.h>
 
23
#include <ctl_sockaddr.h>
 
24
#include <ctl_spinner.h>
 
25
#include <checklist.h>
 
26
#include <dialog.h>
 
27
#include <fastlist.h>
 
28
#include <tab_hosts.h>
 
29
#include "cellservdb.h"
 
30
#include "drivemap.h"
 
31
#include "resource.h"
 
32
#include "config.h"
 
33
#include "help.hid"
 
34
 
 
35
 
 
36
/*
 
37
 * VARIABLES __________________________________________________________________
 
38
 *
 
39
 */
 
40
 
 
41
typedef struct
 
42
   {
 
43
   HWND hMain;
 
44
   BOOL fIsWinNT;
 
45
   BOOL fIsAdmin;
 
46
   BOOL fIsCCenter;
 
47
   LPPROPSHEET psh;
 
48
 
 
49
   struct
 
50
      {
 
51
      TCHAR szGateway[ MAX_PATH ];
 
52
      TCHAR szCell[ MAX_PATH ];
 
53
      TCHAR szSysName[ MAX_PATH ];
 
54
      TCHAR szRootVolume[ MAX_PATH ];
 
55
      TCHAR szMountDir[ MAX_PATH ];
 
56
      TCHAR szCachePath[ MAX_PATH ];
 
57
      BOOL fBeGateway;
 
58
      BOOL fShowTrayIcon;
 
59
      BOOL fLogonAuthent;
 
60
      BOOL fTrapOnPanic;
 
61
      BOOL fFailLoginsSilently;
 
62
      BOOL fReportSessionStartups;
 
63
      DWORD ckCache;
 
64
      DWORD ckChunk;
 
65
      DWORD cStatEntries;
 
66
      DWORD csecProbe;
 
67
      DWORD nThreads;
 
68
      DWORD nDaemons;
 
69
      DWORD nLanAdapter;
 
70
      DWORD nTraceBufSize;
 
71
      DWORD nLoginRetryInterval;
 
72
      PSERVERPREFS pFServers;
 
73
      PSERVERPREFS pVLServers;
 
74
      CELLSERVDB CellServDB;
 
75
      DRIVEMAPLIST NetDrives;
 
76
      DRIVEMAPLIST GlobalDrives;
 
77
      BOOL fChangedPrefs;
 
78
      } Configuration;
 
79
 
 
80
   BOOL fNeedRestart;
 
81
   TCHAR szHelpFile[ MAX_PATH ];
 
82
   } GLOBALS;
 
83
 
 
84
extern GLOBALS g;
 
85
 
 
86
extern const TCHAR AFSConfigKeyName[];
 
87
 
 
88
 
 
89
/*
 
90
 * MACROS _____________________________________________________________________
 
91
 *
 
92
 */
 
93
 
 
94
#ifndef THIS_HINST
 
95
#define THIS_HINST  (HINSTANCE)GetModuleHandle(NULL)
 
96
#endif
 
97
 
 
98
#ifndef REALLOC
 
99
#define REALLOC(_a,_c,_r,_i) AfsConfigReallocFunction ((LPVOID*)&_a,sizeof(*_a),&_c,_r,_i)
 
100
#endif
 
101
 
 
102
#ifndef iswhite
 
103
#define iswhite(_ch) (((_ch)==TEXT(' ')) || ((_ch)==TEXT('\t')))
 
104
#endif
 
105
#ifndef iseol
 
106
#define iseol(_ch) (((_ch)==TEXT('\r')) || ((_ch)==TEXT('\n')))
 
107
#endif
 
108
#ifndef iswhiteeol
 
109
#define iswhiteeol(_ch) (iswhite(_ch) || iseol(_ch))
 
110
#endif
 
111
 
 
112
 
 
113
/*
 
114
 * PROTOTYPES _________________________________________________________________
 
115
 *
 
116
 */
 
117
 
 
118
void Quit (void);
 
119
 
 
120
BOOL AfsConfigReallocFunction (LPVOID *ppTarget, size_t cbElement, size_t *pcTarget, size_t cReq, size_t cInc);
 
121
 
 
122
void Main_OnInitDialog (HWND hMain);
 
123
 
 
124
void Main_RefreshAllTabs (void);
 
125
 
 
126
LPCTSTR GetCautionTitle (void);
 
127
LPCTSTR GetErrorTitle (void);
 
128
 
 
129
 
 
130
#endif
 
131