win32-name-event-objects-20040228
[openafs.git] / src / WINNT / afssvrmgr / svr_security.h
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 SVR_SECURITY_H
11 #define SVR_SECURITY_H
12
13
14 /*
15  * SERVER KEY COLUMNS _________________________________________________________
16  *
17  */
18
19 typedef enum
20    {
21    svrkeyVERSION,
22    svrkeyDATA,
23    svrkeyCHECKSUM,
24    } SERVERKEYCOLUMN;
25
26 static struct
27    {
28    int idsColumn;
29    int cxWidth;
30    }
31 SERVERKEYCOLUMNS[] =
32    {
33       { IDS_SVRKEY_VERSION,     75 }, // svrkeyVERSION
34       { IDS_SVRKEY_DATA,       150 }, // svrkeyDATA
35       { IDS_SVRKEY_CHECKSUM,    75 | COLUMN_RIGHTJUST }, // svrkeyCHECKSUM
36    };
37
38 #define nSERVERKEYCOLUMNS  (sizeof(SERVERKEYCOLUMNS)/sizeof(SERVERKEYCOLUMNS[0]))
39
40
41 /*
42  * DEFINITIONS ________________________________________________________________
43  *
44  */
45
46 typedef struct
47    {
48    LPIDENT lpiServer;
49    int keyVersion;
50    TCHAR szString[ cchRESOURCE ];
51    ENCRYPTIONKEY key;
52    } KEY_CREATE_PARAMS, *LPKEY_CREATE_PARAMS;
53
54 typedef struct
55    {
56    LPIDENT lpiServer;
57    int keyVersion;
58    } KEY_DELETE_PARAMS, *LPKEY_DELETE_PARAMS;
59
60
61 /*
62  * PROTOTYPES _________________________________________________________________
63  *
64  */
65
66 void Server_Key_SetDefaultView (LPVIEWINFO lpvi);
67
68 void Server_Security (LPIDENT lpiServer, BOOL fJumpToKeys = FALSE);
69
70
71 #endif
72