Search code examples
c++cwinapicomvolume-shadow-service

Building a Volume Shadow Service app for release


How should an application that uses the Volume Shadow Copy service be built for release? I've been building and testing in Windows 7 and everything looks good so I built the app to test in Windows XP and I get an error on startup:

The procedure entry point VssFreeSnapshotPropertiesInternal could not be located in the dynamic link library VSSAPI.DLL

Now, I realise that a way round this is to use LoadLibrary and call the function if it exists but surely the function should exist in the first place to be able to use VSS?

I read somewhere that I would need to build a different version for XP, Server 2003, Windows 7 etc but I've not seen that in other applications that use VSS.

What is the correct way to build a VSS app?

Thanks, J


Solution

  • Take a look at HoboCopy source code.
    This should answer every question you could have.
    It's free (for personal use) and C++ src code covers all Windows versions from XP to 2008.
    Src has moved, anyway start from here.