What options are there for accessing volume shadow copy service snapshot files in a program?

429 Views Asked by At

I am creating a VSS snapshot in a program using C++ and the VSS API. According to here you can use the FindFirstFile/FindNextFile functions or create a symbolic link to the volume and go through the link to access the files in a VSS snapshot. Are there any other ways? Thanks.

1

There are 1 best solutions below

3
MSalters On

As the link itself says, FindFirstFile is just an example of how Win32 functions can access the VSS snapshot. You're incorrectly assuming it's somehow special. As the VSS snapshots are just filesystems, it would be exceptional for a file function to not work on them. Chances are high that even std::ifstream would work.