Update NEWS for 1.6.22
[pkg-k5-afs_openafs.git] / src / WINNT / afsadmsvr / TaAfsAdmSvrClientCell.cpp
blobb7f509aa64a68d0d68399bff1d716723e7b41af4
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 "TaAfsAdmSvrClientInternal.h"
22 * ROUTINES ___________________________________________________________________
26 BOOL ADMINAPI asc_CellChange (UINT_PTR idClient, ASID idCell, LPAFSADMSVR_CHANGECELL_PARAMS pChange, ULONG *pStatus)
28 BOOL rc = TRUE;
29 ULONG status = 0;
31 RpcTryExcept
33 if ((rc = AfsAdmSvr_ChangeCell (idClient, idCell, pChange, &status)) != FALSE)
35 // If we succeeded in changing this cell's properties, get the
36 // newest values for our cache.
38 ASOBJPROP Properties;
39 rc = asc_ObjectPropertiesGet (idClient, GET_ALL_DATA, idCell, idCell, &Properties, &status);
42 RpcExcept(1)
44 rc = FALSE;
45 status = RPC_S_CALL_FAILED_DNE;
47 RpcEndExcept
49 if (!rc && pStatus)
50 *pStatus = status;
51 return rc;
55 BOOL ADMINAPI asc_CellRefreshRateSet (UINT_PTR idClient, ASID idCell, ULONG cminRefreshRate, ULONG *pStatus)
57 BOOL rc = TRUE;
58 ULONG status = 0;
60 RpcTryExcept
62 rc = AfsAdmSvr_SetRefreshRate (idClient, idCell, cminRefreshRate, &status);
64 RpcExcept(1)
66 rc = FALSE;
67 status = RPC_S_CALL_FAILED_DNE;
69 RpcEndExcept
71 if (!rc && pStatus)
72 *pStatus = status;
73 return rc;