Update NEWS for 1.6.22
[pkg-k5-afs_openafs.git] / src / WINNT / afssvrmgr / agg_general.cpp
blob7d379c9c8ffdf28869e824efdeeded33f0aec07a
1 /*
2 * Copyright 2000, International Business Machines Corporation and others.
3 * All Rights Reserved.
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 */
10 #include <winsock2.h>
11 #include <ws2tcpip.h>
13 extern "C" {
14 #include <afs/param.h>
15 #include <afs/stds.h>
18 #include "svrmgr.h"
19 #include "agg_general.h"
20 #include "svr_general.h"
24 * PROTOTYPES _________________________________________________________________
30 * AGGREGATE PREFERENCES ______________________________________________________
34 PVOID Aggregates_LoadPreferences (LPIDENT lpiAggregate)
36 LPAGGREGATE_PREF pap = New (AGGREGATE_PREF);
38 if (!RestorePreferences (lpiAggregate, pap, sizeof(AGGREGATE_PREF)))
40 pap->perWarnAggFull = -1; // use the server's default value
41 pap->fWarnAggAlloc = FALSE;
43 Alert_SetDefaults (&pap->oa);
46 Alert_Initialize (&pap->oa);
47 return pap;
51 BOOL Aggregates_SavePreferences (LPIDENT lpiAggregate)
53 BOOL rc = FALSE;
55 PVOID pap = lpiAggregate->GetUserParam();
56 if (pap != NULL)
58 rc = StorePreferences (lpiAggregate, pap, sizeof(AGGREGATE_PREF));
61 return rc;
66 * ROUTINES ___________________________________________________________________
70 LPIDENT Aggregates_GetFocused (HWND hDlg)
72 return (LPIDENT)FL_GetFocusedData (GetDlgItem (hDlg, IDC_AGG_LIST));
76 LPIDENT Aggregates_GetSelected (HWND hDlg)
78 return (LPIDENT)FL_GetSelectedData (GetDlgItem (hDlg, IDC_AGG_LIST));