#if !defined( _OIFILECAPIDLL_ )
|
#define _OIFILECAPIDLL_
|
|
//#pragma comment( lib, "OIFileCAPI.lib" )
|
//#pragma message( "Automatically linking with OIFileCAPI.dll" )
|
|
#if _MSC_VER < 1400
|
#define _FILECAPILIBNAME "OIFileCAPI.lib"
|
#define _FILECAPIDLLNAME _T( "OIFileCAPI.dll" )
|
#else
|
#ifndef _UNICODE
|
#if defined(_DEBUG)
|
#define _FILECAPILIBNAME "OIFileCAPID.lib"
|
#define _FILECAPIDLLNAME _T( "OIFileCAPID.dll" )
|
#else
|
#define _FILECAPILIBNAME "OIFileCAPI.lib"
|
#define _FILECAPIDLLNAME _T( "OIFileCAPI.dll" )
|
#endif
|
#else
|
#if defined(_DEBUG)
|
#define _FILECAPILIBNAME "OIFileCAPIUD.lib"
|
#define _FILECAPIDLLNAME _T( "OIFileCAPIUD.dll" )
|
#else
|
#define _FILECAPILIBNAME "OIFileCAPIU.lib"
|
#define _FILECAPIDLLNAME _T( "OIFileCAPIU.dll" )
|
#endif
|
#endif
|
#endif
|
|
#pragma comment( lib, _FILECAPILIBNAME )
|
#pragma message( "Automatically linking with " _FILECAPILIBNAME )
|
|
#define OPTION_TRANOPTION_SHOWDLG ( 0X0001 ) // ÏÔʾ½ø¶È¶Ô»°¿ò
|
#define OPTION_TRANOPTION_REPORT ( 0X0002 ) // ±¨¸æ½ø¶ÈÐÅÏ¢
|
//#define OPTION_HAVESOURCE ( 0X0004 ) // ÊÇת·¢µÄ¸½¼þ
|
#define OPTION_NOT_GEN_DATEPATH ( 0X0008 ) // ²»×Ô¶¯Éú³ÉÈÕÆÚ·¾¶
|
#define OPTION_NOT_USE_GUIDFILE ( 0X0010 ) // ²»Ê¹Óà GUID ×÷ΪÎļþÃû
|
#define OPTION_GEN_FILE_EXT ( 0X0020 ) // Éú³ÉÎļþʱ£¬¼ÓÉÏÀ©Õ¹Ãû
|
|
//==================================================================================
|
// ¹¦ÄÜ£º
|
// ɾ³ýÎļþ
|
// ²ÎÊý£º
|
// 1) CString strFileSIP // IP
|
// 2) int nFileSPort // ¶Ë¿Ú
|
// 3) CString strOperator // ²Ù×÷¶ÔÏó
|
// 4) CString strOperatorName // ²Ù×÷¶ÔÏóÃû³Æ
|
// 5) CString strAppType // Ó¦ÓÃÀàÐÍ
|
// 6) CString strFileID // Óûɾ³ýµÄÎļþ ID
|
// 8) bool bInitSocket = true // ³õʼ»¯Socket
|
// ·µ»Ø£º
|
// ³É¹¦·µ»Ø0
|
//==================================================================================
|
extern LONG FILEAPI_DeleteFile( CString strFileSIP, int nFileSPort, CString strOperator, CString strOperatorName, CString strAppType, CString strFileID, bool bInitSocket = true );
|
|
//==================================================================================
|
// ¹¦ÄÜ£º
|
// ÉÏ´«Îļþ
|
// ²ÎÊý£º
|
// 1) CString strFileSIP // IP
|
// 2) int nFileSPort // ¶Ë¿Ú
|
// 3) CString strOperator // ²Ù×÷¶ÔÏó
|
// 4) CString strOperatorName // ²Ù×÷¶ÔÏóÃû³Æ
|
// 5) CString strAppType // Ó¦ÓÃÀàÐÍ
|
// 6) CString strFileName // ÉÏ´«µÄÎļþȫ·¾¶
|
// 7) CString strFileID // ·µ»ØµÄÎļþ ID
|
// 8) CString strPathName // ±£´æÖ¸¶¨Ä¿Â¼£¬Ïà¶ÔÓÚ¸ùµÄĿ¼£¬Èç: /Folder
|
// 9) DWORD dwOption // ÉÏ´«µÄÑ¡Ïî
|
// 10) bool bInitSocket = true // ³õʼ»¯Socket
|
// ·µ»Ø£º
|
// ³É¹¦·µ»Ø0
|
//==================================================================================
|
extern LONG FILEAPI_UploadFile( CString strFileSIP, int nFileSPort, CString strOperator, CString strOperatorName, CString strAppType,
|
CString strFileName, CString &strFileID, CString strPathName = _T( "" ), DWORD dwOption = 0, bool bInitSocket = true );
|
|
//==================================================================================
|
// ¹¦ÄÜ£º
|
// ÏÂÔØÎļþ
|
// ²ÎÊý£º
|
// 1) CString strFileSIP // IP
|
// 2) int nFileSPort // ¶Ë¿Ú
|
// 3) CString strOperator // ²Ù×÷¶ÔÏó
|
// 4) CString strOperatorName // ²Ù×÷¶ÔÏóÃû³Æ
|
// 5) CString strAppType // Ó¦ÓÃÀàÐÍ
|
// 6) CString strFileID // ÏÂÔØµÄÎļþ ID
|
// 7) CString strSavePath // ÏÂÔØºó±£´æµÄÖ¸¶¨Ä¿Â¼£¬ÓÃÓÚ±£´æÖÁ Ŀ¼
|
// 8) CString strFileName // ±£´æµÄÎļþȫ·¾¶£¬ÓÃÓÚ±£´æÖÁ Îļþ
|
// 9) DWORD dwOption // ÉÏ´«µÄÑ¡Ïî
|
// 10) bool bInitSocket = true // ³õʼ»¯Socket
|
// ·µ»Ø£º
|
// ³É¹¦·µ»Ø0
|
|
//==================================================================================
|
extern LONG FILEAPI_DownloadFile( CString strFileSIP, int nFileSPort, CString strOperator, CString strOperatorName, CString strAppType,
|
CString strFileID, CString strSavePath, CString &strFileName, DWORD dwOption = 0, bool bInitSocket = true );
|
|
//==================================================================================
|
// ¹¦ÄÜ£º
|
// µÃµ½ÎļþÐÅÏ¢
|
// ²ÎÊý£º
|
// 1) CString strFileSIP // IP
|
// 2) int nFileSPort // ¶Ë¿Ú
|
// 3) CString strOperator // ²Ù×÷¶ÔÏó
|
// 4) CString strOperatorName // ²Ù×÷¶ÔÏóÃû³Æ
|
// 5) CString strAppType // Ó¦ÓÃÀàÐÍ
|
// 6) CString strFileID // ÏÂÔØµÄÎļþ ID
|
// 7) CString strFileName // ÎļþÔÎļþÃû
|
// 8) CString strSaveFileName // ±£´æµÄÎļþ·¾¶£¬Ïà¶ÔÓÚ´æ´¢¸ùµÄ·¾¶
|
// 9) DWORD dwFileSize // Îļþ´óС
|
// 10) bool bInitSocket = true // ³õʼ»¯Socket
|
// ·µ»Ø£º
|
// ³É¹¦·µ»Ø0
|
//==================================================================================
|
extern LONG FILEAPI_GetFileInfo( CString strFileSIP, int nFileSPort, CString strOperator, CString strOperatorName, CString strAppType,
|
CString strFileID, CString &strFileName, CString &strSaveFileName, __int64 &nFileSize,
|
bool bInitSocket = true );
|
|
|
#endif // _OIFILECAPIDLL_
|