⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 securityfilter.h

📁 c++系统开发实例精粹内附的80例源代码 环境:windows2000,c++6.0
💻 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 + -