summaryrefslogtreecommitdiff
path: root/zen/IFileOperation/file_op.h
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 17:21:41 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 17:21:41 +0200
commitd6301fca6b78db52d0d98f8e0799aba175ad2e59 (patch)
tree0380aac034e0d70ee058db07900d80ff20cfc81e /zen/IFileOperation/file_op.h
parent5.7 (diff)
downloadFreeFileSync-d6301fca6b78db52d0d98f8e0799aba175ad2e59.tar.gz
FreeFileSync-d6301fca6b78db52d0d98f8e0799aba175ad2e59.tar.bz2
FreeFileSync-d6301fca6b78db52d0d98f8e0799aba175ad2e59.zip
5.8
Diffstat (limited to 'zen/IFileOperation/file_op.h')
-rw-r--r--zen/IFileOperation/file_op.h20
1 files changed, 11 insertions, 9 deletions
diff --git a/zen/IFileOperation/file_op.h b/zen/IFileOperation/file_op.h
index c9df1e1e..86efc340 100644
--- a/zen/IFileOperation/file_op.h
+++ b/zen/IFileOperation/file_op.h
@@ -1,16 +1,16 @@
// **************************************************************************
// * 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 (zenju AT gmx DOT de) - All Rights Reserved *
+// * Copyright (C) Zenju (zenju 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)
+#define DLL_FUNCTION_DECLARATION extern "C" __declspec(dllexport)
#else
-#define FILE_OP_DLL_API extern "C" __declspec(dllimport)
+#define DLL_FUNCTION_DECLARATION extern "C" __declspec(dllimport)
#endif
#include <zen/build_info.h>
@@ -25,25 +25,25 @@ namespace fileop
//COM needs to be initialized before calling any of these functions! CoInitializeEx/CoUninitialize
//minimum OS: Windows Vista or later
-FILE_OP_DLL_API
+DLL_FUNCTION_DECLARATION
bool moveToRecycleBin(const wchar_t* fileNames[],
size_t fileNo); //size of fileNames array
-FILE_OP_DLL_API
+DLL_FUNCTION_DECLARATION
bool copyFile(const wchar_t* sourceFile,
const wchar_t* targetFile);
-FILE_OP_DLL_API
+DLL_FUNCTION_DECLARATION
bool checkRecycler(const wchar_t* dirname, bool& isRecycler); //returns false on error
-FILE_OP_DLL_API
+DLL_FUNCTION_DECLARATION
bool getLockingProcesses(const wchar_t* filename, const wchar_t*& procList); //get list of processes as single string, call freeString(procList) after use!
-FILE_OP_DLL_API
+DLL_FUNCTION_DECLARATION
void freeString(const wchar_t* str);
//get last error message if any of the functions above fail
-FILE_OP_DLL_API
+DLL_FUNCTION_DECLARATION
const wchar_t* getLastError(); //no nullptr check required!
/*----------
@@ -73,4 +73,6 @@ const char funName_getLastError [] = "getLastError";
inline const wchar_t* getDllName() { return zen::is64BitBuild ? L"FileOperation_x64.dll" : L"FileOperation_Win32.dll"; }
}
+#undef DLL_FUNCTION_DECLARATION
+
#endif //RECYCLER_DLL_H
bgstack15