diff options
author | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:21:41 +0200 |
---|---|---|
committer | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:21:41 +0200 |
commit | d6301fca6b78db52d0d98f8e0799aba175ad2e59 (patch) | |
tree | 0380aac034e0d70ee058db07900d80ff20cfc81e /lib/ShadowCopy/shadow.h | |
parent | 5.7 (diff) | |
download | FreeFileSync-d6301fca6b78db52d0d98f8e0799aba175ad2e59.tar.gz FreeFileSync-d6301fca6b78db52d0d98f8e0799aba175ad2e59.tar.bz2 FreeFileSync-d6301fca6b78db52d0d98f8e0799aba175ad2e59.zip |
5.8
Diffstat (limited to 'lib/ShadowCopy/shadow.h')
-rw-r--r-- | lib/ShadowCopy/shadow.h | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/lib/ShadowCopy/shadow.h b/lib/ShadowCopy/shadow.h index 8f35c728..e68b2655 100644 --- a/lib/ShadowCopy/shadow.h +++ b/lib/ShadowCopy/shadow.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 SHADOWCOPY_H -#define SHADOWCOPY_H +#ifndef SHADOWCOPY_H_14837413434 +#define SHADOWCOPY_H_14837413434 #ifdef SHADOWDLL_EXPORTS -#define SHADOWDLL_API extern "C" __declspec(dllexport) +#define DLL_FUNCTION_DECLARATION extern "C" __declspec(dllexport) #else -#define SHADOWDLL_API extern "C" __declspec(dllimport) +#define DLL_FUNCTION_DECLARATION extern "C" __declspec(dllimport) #endif #include <zen/build_info.h> @@ -30,18 +30,18 @@ struct ShadowData; typedef ShadowData* ShadowHandle; //volumeName *must* end with "\" -SHADOWDLL_API +DLL_FUNCTION_DECLARATION ShadowHandle createShadowCopy(const wchar_t* volumeName); //returns nullptr on failure! //release the backupHandle after shadow copy is not needed anymore! -SHADOWDLL_API +DLL_FUNCTION_DECLARATION void releaseShadowCopy(ShadowHandle handle); -SHADOWDLL_API +DLL_FUNCTION_DECLARATION const wchar_t* getShadowVolume(ShadowHandle handle); //never fails, returns shadowVolName, never ending with "\" //get last error message if any of the functions above fail -SHADOWDLL_API +DLL_FUNCTION_DECLARATION const wchar_t* getLastError(); //no nullptr check required! //########################################################################################## @@ -89,4 +89,6 @@ const wchar_t* getDllName() } } -#endif //SHADOWCOPY_H +#undef DLL_FUNCTION_DECLARATION + +#endif //SHADOWCOPY_H_14837413434 |