summaryrefslogtreecommitdiff
path: root/shared/shadow.h
blob: ddb329bd0357f5e6ac9fa78db9f2d0645b9b5193 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#ifndef SHADOW_H_INCLUDED
#define SHADOW_H_INCLUDED

#ifndef FFS_WIN
use in 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:
    ShadowCopy(const ShadowCopy&);
    ShadowCopy& operator=(const ShadowCopy&);

    bool isOkay();

    Zstring realVolumeLast;   //buffer last volume name
    Zstring shadowVolumeLast; //buffer last created shadow volume
    void* backupHandle;
};
}

#endif // SHADOW_H_INCLUDED
bgstack15