summaryrefslogtreecommitdiff
path: root/shared/ShadowCopy
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 17:10:11 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 17:10:11 +0200
commitc0cdb2ad99a1e2a6ade5ce76c91177a79258e669 (patch)
tree4701a015385d9a6a5a4ba99a8f1f5d400fff26b1 /shared/ShadowCopy
parent3.13 (diff)
downloadFreeFileSync-c0cdb2ad99a1e2a6ade5ce76c91177a79258e669.tar.gz
FreeFileSync-c0cdb2ad99a1e2a6ade5ce76c91177a79258e669.tar.bz2
FreeFileSync-c0cdb2ad99a1e2a6ade5ce76c91177a79258e669.zip
3.14
Diffstat (limited to 'shared/ShadowCopy')
-rw-r--r--shared/ShadowCopy/dll_main.cpp10
-rw-r--r--shared/ShadowCopy/shadow.h13
2 files changed, 16 insertions, 7 deletions
diff --git a/shared/ShadowCopy/dll_main.cpp b/shared/ShadowCopy/dll_main.cpp
index d23e5c48..ab387012 100644
--- a/shared/ShadowCopy/dll_main.cpp
+++ b/shared/ShadowCopy/dll_main.cpp
@@ -15,11 +15,11 @@ BOOL APIENTRY DllMain(HINSTANCE hinstDLL,
{
switch (fdwReason)
{
- case DLL_PROCESS_ATTACH:
- case DLL_PROCESS_DETACH:
- case DLL_THREAD_ATTACH:
- case DLL_THREAD_DETACH:
- break;
+ case DLL_PROCESS_ATTACH:
+ case DLL_PROCESS_DETACH:
+ case DLL_THREAD_ATTACH:
+ case DLL_THREAD_DETACH:
+ break;
}
return TRUE;
}
diff --git a/shared/ShadowCopy/shadow.h b/shared/ShadowCopy/shadow.h
index 683a4e16..5495633d 100644
--- a/shared/ShadowCopy/shadow.h
+++ b/shared/ShadowCopy/shadow.h
@@ -16,6 +16,10 @@
namespace shadow
{
+/*--------------
+ |declarations|
+ --------------*/
+
//COM needs to be initialized before calling any of these functions! CoInitializeEx/CoUninitialize
typedef size_t ShadowHandle;
@@ -38,7 +42,9 @@ void releaseShadowCopy(ShadowHandle handle);
//##########################################################################################
-//function typedefs
+/*----------
+ |typedefs|
+ ----------*/
typedef bool (*CreateShadowCopyFct)(const wchar_t* volumeName,
wchar_t* shadowVolName,
unsigned int shadowBufferLen,
@@ -48,7 +54,10 @@ typedef bool (*CreateShadowCopyFct)(const wchar_t* volumeName,
typedef void (*ReleaseShadowCopyFct)(ShadowHandle handle);
-//function names
+/*--------------
+ |symbol names|
+ --------------*/
+//(use const pointers to ensure internal linkage)
const char* const createShadowCopyFctName = "createShadowCopy";
const char* const releaseShadowCopyFctName = "releaseShadowCopy";
}
bgstack15