My TDM article about Volume Shadow Copy Service and Windows XP

Posted: (EET/GMT+2)

 

In September 2005, I wrote an article to The Delphi Magazine about Windows' Volume Shadow Copy service, or VSS. My article, titled "Delphi Meets The Volume Shadow Copy Service" has become quite popular it seems; some readers subscribing to the magazine just for my article alone. Good.

Now, lately I've also received many questions from readers about the sample application I provided with the article. Now, the article was written with Windows Server 2003 (W2K3) in mind, even though Windows XP also supports VSS. The question I get is "how can I modify the sample application to work with Windows XP?"

Since this is such a common question, I thought I'd briefly share what you need to do. First of all, you would need to get the Windows XP versions of the C++ .H header files. My sample code includes the .H files for W2K3, but you may find the needed files from the SDK. You would need to check which interfaces are different on WinXP compared to W2K3. Secondly, you need to change the declaration of the CreateVssBackupComponents API function in the VssAPI.pas unit in my sample code. For W2K3, this function is defined at index 13, but on WinXP this function is defined at index 5. Hope this helps!