📄 filesystem.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
//
//////////////////////////////////////////////////////////////////////
// FileSystem.h: interface for the CFileSystem class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_FILESYSTEM_H__C10ABA42_5875_11D3_B8DB_00600838CD5F__INCLUDED_)
#define AFX_FILESYSTEM_H__C10ABA42_5875_11D3_B8DB_00600838CD5F__INCLUDED_
#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
class CFileSystem
{
public:
// Non-virtuals; depend on the virtuals alone
LPCTSTR GetFileDisplayName(LPCTSTR strName);
LPCTSTR GetFileDisplayName(SHFILEINFO shFinfo);
LPCTSTR GetFileSize(LPCTSTR strName);
LPCTSTR GetFileType(LPCTSTR strName);
LPCTSTR GetFileType(SHFILEINFO shFinfo);
time_t GetFileModificationTime(LPCTSTR strName);
bool IsDirectory(LPCTSTR strName);
bool IsDirectory(SHFILEINFO shFinfo);
bool IsLink(LPCTSTR strName);
bool IsLink(SHFILEINFO shFinfo);
bool IsVolume(LPCTSTR strName, BOOL bCheckDir = TRUE);
CString GetFullPathName(LPCTSTR lpFileName);
LPCTSTR GetSubPath(LPCTSTR strPath);
public:
virtual BOOL CopyFile(LPCTSTR lpExistingFileName, LPCTSTR lpNewFileName, BOOL bFailIfExists);
virtual BOOL CreateDirectory(LPCTSTR czName);
virtual BOOL DeleteFile(LPCTSTR lpFileName);
virtual BOOL GetCompInfo(CStringArray &csaInfo);
virtual int GetFSType();
virtual BOOL HasSubDirectory(LPCTSTR strPath);
virtual LPCTSTR GetComputerName();
BOOL IsRecycleBin(LPCTSTR cszDir);
virtual LPCTSTR GetRecycleDirectory();
virtual DWORD GetLogicalDriveStrings(DWORD nBufferLength, LPTSTR lpBuffer);
virtual UINT GetDriveType(LPCTSTR lpRootPathName);
virtual HRESULT ResolveLink(HWND hwnd, LPCSTR lpszLinkFile, LPSTR lpszPath);
virtual HRESULT CreateLink(LPCSTR lpszPathObj, LPSTR lpszPathLink, LPSTR lpszDesc);
virtual BOOL MoveFile( LPCTSTR pszOldName, LPCTSTR pszNewName );
virtual BOOL IsHidden( );
virtual BOOL IsDirectory( );
virtual BOOL GetFileStatus( LPCTSTR pszFileName, CFileStatus &rStatus );
virtual BOOL FillFileInfo(LPCTSTR pszPath, SHFILEINFO *fiInfo, UINT uFlags);
virtual CString GetFilePath( );
virtual BOOL IsDots( );
virtual BOOL FindNextFile( );
virtual BOOL FindFile(LPCTSTR pstrName = NULL, DWORD dwUnused = 0 );
virtual bool ExecuteFile(HWND hWnd, LPCTSTR strName);
CFileSystem();
virtual ~CFileSystem();
private:
CFileFind m_cFileFind;
};
#endif // !defined(AFX_FILESYSTEM_H__C10ABA42_5875_11D3_B8DB_00600838CD5F__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -