summaryrefslogtreecommitdiff
path: root/library/shadow.h
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 16:59:06 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 16:59:06 +0200
commit4046be06720932a57a0f49416b0144b2858824d0 (patch)
tree678c37cab05960f48923a23bb46d9e01be89d35a /library/shadow.h
parent1.19 (diff)
downloadFreeFileSync-4046be06720932a57a0f49416b0144b2858824d0.tar.gz
FreeFileSync-4046be06720932a57a0f49416b0144b2858824d0.tar.bz2
FreeFileSync-4046be06720932a57a0f49416b0144b2858824d0.zip
2.0
Diffstat (limited to 'library/shadow.h')
-rw-r--r--library/shadow.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/library/shadow.h b/library/shadow.h
new file mode 100644
index 00000000..ded9d746
--- /dev/null
+++ b/library/shadow.h
@@ -0,0 +1,31 @@
+#ifndef SHADOW_H_INCLUDED
+#define SHADOW_H_INCLUDED
+
+#ifndef FFS_WIN
+#warning //this 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