diff options
author | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:19:49 +0200 |
---|---|---|
committer | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:19:49 +0200 |
commit | c8e0e909b4a8d18319fc65434a10dc446434817c (patch) | |
tree | eee91e7d2ce229dd043811eae8f1e2bd78061916 /lib/IFileOperation/file_op.h | |
parent | 5.2 (diff) | |
download | FreeFileSync-c8e0e909b4a8d18319fc65434a10dc446434817c.tar.gz FreeFileSync-c8e0e909b4a8d18319fc65434a10dc446434817c.tar.bz2 FreeFileSync-c8e0e909b4a8d18319fc65434a10dc446434817c.zip |
5.3
Diffstat (limited to 'lib/IFileOperation/file_op.h')
-rw-r--r-- | lib/IFileOperation/file_op.h | 62 |
1 files changed, 0 insertions, 62 deletions
diff --git a/lib/IFileOperation/file_op.h b/lib/IFileOperation/file_op.h deleted file mode 100644 index 530226d3..00000000 --- a/lib/IFileOperation/file_op.h +++ /dev/null @@ -1,62 +0,0 @@ -// ************************************************************************** -// * This file is part of the FreeFileSync project. It is distributed under * -// * GNU General Public License: http://www.gnu.org/licenses/gpl.html * -// * Copyright (C) ZenJu (zhnmju123 AT gmx DOT de) - All Rights Reserved * -// ************************************************************************** - -#ifndef RECYCLER_DLL_H -#define RECYCLER_DLL_H - -#ifdef FILE_OP_DLL_EXPORTS -#define FILE_OP_DLL_API extern "C" __declspec(dllexport) -#else -#define FILE_OP_DLL_API extern "C" __declspec(dllimport) -#endif - -#include <zen/build_info.h> - - -namespace fileop -{ -/*-------------- - |declarations| - --------------*/ - -//COM needs to be initialized before calling any of these functions! CoInitializeEx/CoUninitialize - -FILE_OP_DLL_API -bool moveToRecycleBin(const wchar_t* fileNames[], - size_t fileNo); //size of fileNames array - -FILE_OP_DLL_API -bool copyFile(const wchar_t* sourceFile, - const wchar_t* targetFile); - -//if any of the functions above returns 'false', this message returns last error -FILE_OP_DLL_API -void getLastError(wchar_t* errorMessage, size_t errorBufferLen); - -/*---------- - |typedefs| - ----------*/ -typedef bool (*MoveToRecycleBinFct)(const wchar_t* fileNames[], size_t fileNo); -typedef bool (*CopyFileFct)(const wchar_t* sourceFile, const wchar_t* targetFile); -typedef void (*GetLastErrorFct)(wchar_t* errorMessage, size_t errorBufferLen); - -/*-------------- - |symbol names| - --------------*/ -//(use const pointers to ensure internal linkage) -const char moveToRecycleBinFctName[] = "moveToRecycleBin"; -const char copyFileFctName[] = "copyFile"; -const char getLastErrorFctName[] = "getLastError"; - -/*--------------- - |library names| - ---------------*/ -inline const wchar_t* getDllName() { return zen::is64BitBuild ? L"FileOperation_x64.dll" : L"FileOperation_Win32.dll"; } -} - - - -#endif //RECYCLER_DLL_H |