summaryrefslogtreecommitdiff
path: root/shared/ShadowCopy/shadow.h
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 17:08:42 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 17:08:42 +0200
commitc32707148292d104c66276b43796d6057c8c7a5d (patch)
treebb83513f4aff24153e21a4ec92e34e4c27651b1f /shared/ShadowCopy/shadow.h
parent3.9 (diff)
downloadFreeFileSync-c32707148292d104c66276b43796d6057c8c7a5d.tar.gz
FreeFileSync-c32707148292d104c66276b43796d6057c8c7a5d.tar.bz2
FreeFileSync-c32707148292d104c66276b43796d6057c8c7a5d.zip
3.10
Diffstat (limited to 'shared/ShadowCopy/shadow.h')
-rw-r--r--shared/ShadowCopy/shadow.h21
1 files changed, 12 insertions, 9 deletions
diff --git a/shared/ShadowCopy/shadow.h b/shared/ShadowCopy/shadow.h
index a9120e8a..f1100284 100644
--- a/shared/ShadowCopy/shadow.h
+++ b/shared/ShadowCopy/shadow.h
@@ -18,32 +18,35 @@ namespace shadow
{
//COM needs to be initialized before calling any of these functions! CoInitializeEx/CoUninitialize
+typedef size_t ShadowHandle;
//volumeName must end with "\", while shadowVolName does not end with "\"
SHADOWDLL_API
-bool createShadowCopy(const wchar_t* volumeName,
- wchar_t* shadowVolName,
- unsigned int shadowBufferLen,
- void** backupHandle,
- wchar_t* errorMessage,
- unsigned int errorBufferLen);
+bool createShadowCopy(const wchar_t* volumeName, //[in]
+ wchar_t* shadowVolName, //[out]
+ unsigned int shadowBufferLen, //[in]
+ ShadowHandle* handle, //[out]
+ wchar_t* errorMessage, //[out]
+ unsigned int errorBufferLen); //[in]
//don't forget to release the backupHandle after shadow copy is not needed anymore!
SHADOWDLL_API
-void releaseShadowCopy(void* backupHandle);
+void releaseShadowCopy(ShadowHandle handle);
+//##########################################################################################
+
//function typedefs
typedef bool (*CreateShadowCopyFct)(const wchar_t* volumeName,
wchar_t* shadowVolName,
unsigned int shadowBufferLen,
- void** backupHandle,
+ ShadowHandle* handle,
wchar_t* errorMessage,
unsigned int errorBufferLen);
-typedef void (*ReleaseShadowCopyFct)(void* backupHandle);
+typedef void (*ReleaseShadowCopyFct)(ShadowHandle handle);
//function names
const char* const createShadowCopyFctName = "createShadowCopy";
bgstack15