Copy files from VSS

假如想象 提交于 2019-12-08 11:21:39

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!