summaryrefslogtreecommitdiff
path: root/shared/shadow.h
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 17:00:17 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 17:00:17 +0200
commitfd0853d2623dd278b08288331ed42e3be59252fb (patch)
treea7645daeaef8bdbed064faf4eb88e72cee58726c /shared/shadow.h
parent2.1 (diff)
downloadFreeFileSync-fd0853d2623dd278b08288331ed42e3be59252fb.tar.gz
FreeFileSync-fd0853d2623dd278b08288331ed42e3be59252fb.tar.bz2
FreeFileSync-fd0853d2623dd278b08288331ed42e3be59252fb.zip
2.2
Diffstat (limited to 'shared/shadow.h')
-rw-r--r--shared/shadow.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/shared/shadow.h b/shared/shadow.h
new file mode 100644
index 00000000..15fd4d9d
--- /dev/null
+++ b/shared/shadow.h
@@ -0,0 +1,31 @@
+#ifndef SHADOW_H_INCLUDED
+#define SHADOW_H_INCLUDED
+
+#ifndef FFS_WIN
+header should be used in the windows build only!
+#endif
+
+#include "zstring.h"
+#include "fileError.h"
+
+
+namespace FreeFileSync
+{
+ class ShadowCopy //buffer access to Windows Volume Shadow Copy Service
+ {
+ public:
+ ShadowCopy();
+ ~ShadowCopy();
+
+ Zstring makeShadowCopy(const Zstring& inputFile); //throw(FileError); returns filename on shadow copy
+
+ private:
+ bool isOkay();
+
+ Zstring realVolumeLast; //buffer last volume name
+ Zstring shadowVolumeLast; //buffer last created shadow volume
+ void* backupHandle;
+ };
+}
+
+#endif // SHADOW_H_INCLUDED
bgstack15