📄 securityfilter.h
字号:
//////////////////////////////////////////////////////////////////////
// FileFury
// Copyright (c) 2000 Tenebril Incorporated
// All rights reserved.
//
// This source code is governed by the Tenebril open source
// license (http://www.tenebril.com/developers/opensource/license.html)
//
// For more information on this and other open source applications,
// visit the Tenebril OpenSource page:
// http://www.tenebril.com/developers/opensource
//
//////////////////////////////////////////////////////////////////////
// SecurityFilter.h: interface for the CSecurityFilter class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_SECURITYFILTER_H__931C9260_5F97_11D3_B8DD_00600838CD5F__INCLUDED_)
#define AFX_SECURITYFILTER_H__931C9260_5F97_11D3_B8DD_00600838CD5F__INCLUDED_
#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
class CSecurityFilter
{
public:
BOOL IsDriveShared(LPCTSTR lpDrive);
BOOL GetDirectory(int nID, CString &cszDir);
BOOL IsDirectlyShared(LPCTSTR czDir);
BOOL CanShare(LPCTSTR czPath);
void Dereference();
void Reference();
int FromBuffer(char *cBuf);
char *ToBuffer(UINT &nLen);
UINT GetSharedDirectories(LPCTSTR czDrive, CStringArray &csArray);
BOOL IsShared(LPCTSTR czDir);
BOOL RemoveDirectory(LPCTSTR czDir);
BOOL AddDirectory(LPCTSTR czDir);
CSecurityFilter();
virtual ~CSecurityFilter();
protected:
int FindDirectory(LPCTSTR czDir);
CStringArray m_csDirectories;
BOOL IsSubDir(LPCTSTR czMainDir, LPCTSTR czSubDir);
private:
int m_nReferences;
CMutex m_cMutex;
};
#endif // !defined(AFX_SECURITYFILTER_H__931C9260_5F97_11D3_B8DD_00600838CD5F__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -