问题
I am working on a windows VSS application, I want some help regarding it. After creating snapshot, how can I copy the files or files' blocks(sectors), preferably files' blocks, from volume snapshot using C/C++. Can someone guide me on this or can direct me to any samples or documentation doing the same.
Thanks in advance.
回答1:
You can access VSS snapshot items using regular functions
CreateFile()
to open a file
ReadFile()
or BackupRead()
to read/backup its data
Only the root path to the items will change
(for example, \\?\GLOBALROOT\Device\HarddiskVolumeShadowCopyX\ instead of C:\ )
What do you want to know exactly?
来源:https://stackoverflow.com/questions/12910457/copy-files-from-vss