FileManageLib.h
资源名称:FTP总集.rar [点击查看]
上传用户:tjfeida
上传日期:2013-03-10
资源大小:1917k
文件大小:2k
源码类别:
Ftp客户端
开发平台:
Visual C++
- // FileManageLib.h: interface for the CFileManageLib class.
- //
- //////////////////////////////////////////////////////////////////////
- #if !defined(AFX_FILEMANAGELIB_H__25C80CD9_5689_4F46_9ADC_C421B9DF7D03__INCLUDED_)
- #define AFX_FILEMANAGELIB_H__25C80CD9_5689_4F46_9ADC_C421B9DF7D03__INCLUDED_
- /*********************************************
- **该文件是属于WolfFTP工程中的。如果有什么问题
- **请联系
- ** tablejiang@21cn.com
- **或者访问
- ** http://wolfftp.51.net
- **以得到最新的支持。
- *********************************************/
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- #define CREATESIZE 4096
- /***********************************************************
- ** @Description:
- ** This class is use for manage file system .You can
- ** delete ,move , rename , and copy files by use
- ** the interface function .
- **
- ** @Usage
- ** 1.declare a CFileManageLib object in your function.
- ** 2.before you can manage the file , you must add the
- ** source full path by use AddFromFileList( ) , and
- ** add destina file full path by use AddToFileList() ,
- ** 3. after above , you can run RanameFile() ,MoveFile() ,
- ** and so on ,to manage the file .
- **
- ** @Note:
- ** This class core is SHFileOperation() function .
- **
- ** @Author :Table.JHM.太子
- ** e-mail :tablejiang@21cn.com
- ** Date :2001 3 26
- *************************************************************/
- class CFileManageLib
- {
- public:
- CFileManageLib();
- virtual ~CFileManageLib();
- /*********************************************
- // Interface function //
- *********************************************/
- public:
- BOOL AddToFileList( LPCTSTR szPathName );
- BOOL AddFromFileList( LPCTSTR szPathName );
- BOOL RenameFile( );
- BOOL MoveFile( );
- BOOL CopyFile( );
- BOOL DeleteFile( );
- //protected data
- protected:
- BOOL ClearBuffer( );
- BOOL ActionRun( SHFILEOPSTRUCT* pSt );
- char* m_strFrom ;
- char* m_strTo ;
- DWORD m_dwFromBfSize ;
- DWORD m_dwFromUseSize ;
- DWORD m_dwToBfSize ;
- DWORD m_dwToUseSize ;
- };
- #endif // !defined(AFX_FILEMANAGELIB_H__25C80CD9_5689_4F46_9ADC_C421B9DF7D03__INCLUDED_)