Windows: Explorer Shell extensions
[openafs.git] / src / WINNT / client_exp / gui2fs.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 __GUI2FS_H__
11 #define __GUI2FS_H__
12
13 #include "volume_inf.h"
14
15 void Flush(const CStringArray& files);
16 void FlushVolume(const CStringArray& files);
17 void WSCellCmd();
18 void WhichCell(CStringArray& files);
19 BOOL CheckVolumes();
20 void SetCacheSize(LONG nNewCacheSize);
21 void WhereIs(CStringArray& files);
22 CString GetAfsError(int code, const TCHAR *filename = 0);
23 void CleanACL(CStringArray& names);
24 BOOL GetRights(const CString& strDir, CStringArray& strNormal, CStringArray& strNegative);
25 BOOL SaveACL(const CString& strCellName, const CString& strDir, const CStringArray& normal, const CStringArray& negative);
26 BOOL CopyACL(const CString& strToDir, const CStringArray& normal, const CStringArray& negative, BOOL bClear);
27 BOOL ListMount(CStringArray& files);
28 BOOL MakeMount(const CString& strDir, const CString& strVolName, const CString& strCellName, BOOL bRW);
29 BOOL RemoveMount(CStringArray& files);
30 BOOL RemoveSymlink(const CString& symlink);
31 BOOL GetVolumeInfo(CString strFile, CVolInfo& volInfo);
32 BOOL SetVolInfo(CVolInfo& volInfo);
33 enum WHICH_CELLS { LOCAL_CELL = 0, SPECIFIC_CELL = 1, ALL_CELLS = 2 };
34 BOOL CheckServers(const CString& strCellName, WHICH_CELLS nCellsToCheck, BOOL bFast);
35 BOOL GetTokenInfo(CStringArray& tokenInfo);
36 BOOL GetFID(const CString& path, CString& fidstring, BOOL bLiteral = TRUE);
37 BOOL IsPathInAfs(const CString& strPath);
38 BOOL IsSymlink(const CString& name);
39 BOOL IsMountPoint(const CString& name);
40 UINT MakeSymbolicLink(const CString&,const CString&);
41 void ListSymbolicLinkPath(CString&,CString&,UINT nlenPath);
42 BOOL ListSymlink(CStringArray& files);
43 CString GetCellName(const CString& strPath);
44 CString GetServer(const CString& strPath);
45 void GetServers( const CString& strPath, CStringArray& servers );
46 CString GetOwner(const CString& strPath);
47 CString GetGroup(const CString& strPath);
48 BOOL GetUnixModeBits(const CString& strPath, CString& user, CString& group, CString& other, CString& suid);
49 void SetUnixModeBits(const CStringArray& files, const CString& user, const CString& group, const CString& other, const CString& suid);
50 CString GetMountpoint(const CString& strPath);
51 CString GetSymlink(const CString& strPath);
52 #endif //__GUI2FS_H__