winnt-dont-display-ibm-legal-message-20040326
[openafs.git] / src / WINNT / afsusrmgr / general.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 GENERAL_H
11 #define GENERAL_H
12
13
14 /*
15  * DEFINITIONS ________________________________________________________________
16  *
17  */
18
19 typedef enum
20    {
21    ctALPHABETIC,
22    ctNUMERIC,
23    ctDATE,
24    ctELAPSED
25    } COLUMNTYPE;
26
27 typedef BOOL (*GetColumnFunction)(ASID idObject, LONG iCol, LPTSTR pszText, LPSYSTEMTIME pstDate, LONG *pcsec, COLUMNTYPE *pcType);
28
29
30 /*
31  * PROTOTYPES _________________________________________________________________
32  *
33  */
34
35 BOOL fIsValidDate (LPSYSTEMTIME pst);
36
37 void FormatElapsedSeconds (LPTSTR pszText, LONG csec);
38
39 LPTSTR CreateNameList (LPASIDLIST pAsidList, int idsHeader = 0);
40
41 void GetLocalSystemTime (LPSYSTEMTIME pst);
42
43 void FormatServerKey (LPTSTR psz, PBYTE pKey);
44 BOOL ScanServerKey (PBYTE pKey, LPTSTR psz);
45
46 int CALLBACK General_ListSortFunction (HWND hList, HLISTITEM hItem1, LPARAM lpItem1, HLISTITEM hItem2, LPARAM lpItem2);
47
48 void AppendUID (LPTSTR psz, int uid);
49
50 LPTSTR GetEditText (HWND hEdit);
51
52 BOOL fIsMachineAccount (ASID idAccount);
53 BOOL fIsMachineAccount (LPTSTR pszName);
54
55
56 #endif
57