7 Responses to Using Volume Shadow Services to Copy Locked Files

  1. Anno says:

    Very helpful, I was trying to do just this but the COM interface was just indecipherable. So, thanks a lot !

  2. Adrian says:

    Thanks!!!

  3. Jason says:

    Excellent article, just what I was looking for! There’s a real lack of information about VSS and the documentation is very confusing.

    I am having a problem with the call to CreateVssBackupComponents(), it always returns E_ACCESSDENIED when running as my login. I have used AdjustTokenPrivilege() to set SE_BACKUP_NAME privilege to enabled but still the same. Do you have any ideas on why I can’t run this function?

  4. Martin says:

    Thank You for the sample code. I too am facing the same problem that Jason(above) faced. How to use this on windows XP(32-bit). Is it possible to implement volume shodow copy in XP? Thanks in advance.

  5. ehaddan says:

    Sorry for the delay.

    There are a few caveats that I have found out since writing this post.

    The default VSS library that comes with the MS SDK will work with Windows Vista and Windows 7 only.

    In order to use the Volume Shadow Copy Services in Windows XP and Windows server 2003, you must download the Volume Shadow Copy Services SDK 7.2and create separate modules for each of the operating systems.

    Each module needs to include the appropriate vss.h and linked to the appropriate vssapi.lib. The VSS SDK will include these files in its install directory.

    The last thing that you really need to watch out for is that your VSS application must run native 32 or 64-bit, which means if you are running on a 64-bit OS, you must use the APIs in a 64-bit application. This has caused us to get creative and create separate command-line utilities for XP, 2003, Vista/7 32-bit, and Vista/7 64-bit.

    Hopefully this helps.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: