VSS Services API

Hi,

I am trying to extract data about the current Volume Shadow Copies generated on my machine through system restore points. I can get a nice output using VSSADMIN list shadows, however the tool I am currently working on would be better suited if the same information could be retrieved through API calls. Does anyone have experience in this area ? The output returned from VSSADMIN list shadows is:

##############################################################
Microsoft Windows [Version 6.1.7600]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\Users\jmdharkness>VSSADMIN list shadows
vssadmin 1.1 - Volume Shadow Copy Service administrative command-line tool
(C) Copyright 2001-2005 Microsoft Corp.

Contents of shadow copy set ID: {5634e7e8-213b-4ffc-b7ae-c3c05153b4d6}
Contained 1 shadow copies at creation time: 17/06/2011 21:08:34
Shadow Copy ID: {ead089a6-18e8-4737-985b-18f90a831a40}
Original Volume: (C\\?\Volume{ff5aa44a-8d08-11e0-b3de-806e6f6e6963}\
Shadow Copy Volume: \\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy1
Originating Machine: jmdharkness-PC
Service Machine: jmdharkness-PC
Provider: 'Microsoft Software Shadow Copy provider 1.0'
Type: ClientAccessibleWriters
Attributes: Persistent, Client-accessible, No auto release, Differential, Auto recovered

Contents of shadow copy set ID: {c9166605-ffa1-4492-a772-44e27f6c5387}
Contained 1 shadow copies at creation time: 20/06/2011 17:08:13
Shadow Copy ID: {89f048a8-888b-4810-b558-4004162050f1}
Original Volume: (C\\?\Volume{ff5aa44a-8d08-11e0-b3de-806e6f6e6963}\
Shadow Copy Volume: \\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy3
Originating Machine: jmdharkness-PC
Service Machine: jmdharkness-PC
Provider: 'Microsoft Software Shadow Copy provider 1.0'
Type: ClientAccessibleWriters
Attributes: Persistent, Client-accessible, No auto release, Differential, Auto recovered

Contents of shadow copy set ID: {256af75f-51a7-47af-8546-bdb3a2a04541}
Contained 1 shadow copies at creation time: 21/06/2011 17:34:57
Shadow Copy ID: {c30cd5c0-4dcf-4d49-b135-906e59fe78a5}
Original Volume: (C\\?\Volume{ff5aa44a-8d08-11e0-b3de-806e6f6e6963}\
Shadow Copy Volume: \\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy4
Originating Machine: jmdharkness-PC
Service Machine: jmdharkness-PC
Provider: 'Microsoft Software Shadow Copy provider 1.0'
Type: ClientAccessibleWriters
Attributes: Persistent, Client-accessible, No auto release, Differential, Auto recovered

Contents of shadow copy set ID: {ee5b9ca5-180e-413a-8c70-d951d1e3bd49}
Contained 1 shadow copies at creation time: 23/06/2011 18:31:02
Shadow Copy ID: {de69fdb3-d963-4079-844c-a2ec7ef7a1e4}
Original Volume: (C\\?\Volume{ff5aa44a-8d08-11e0-b3de-806e6f6e6963}\
Shadow Copy Volume: \\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy5
Originating Machine: jmdharkness-PC
Service Machine: jmdharkness-PC
Provider: 'Microsoft Software Shadow Copy provider 1.0'
Type: ClientAccessibleWriters
Attributes: Persistent, Client-accessible, No auto release, Differential, Auto recovered

Contents of shadow copy set ID: {2dfa0c3e-01ec-4c93-90fd-c33882d6e41c}
Contained 1 shadow copies at creation time: 30/06/2011 11:08:12
Shadow Copy ID: {ed436e04-97b8-48d9-92e2-69a1b27f1698}
Original Volume: (C\\?\Volume{ff5aa44a-8d08-11e0-b3de-806e6f6e6963}\
Shadow Copy Volume: \\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy6
Originating Machine: jmdharkness-PC
Service Machine: jmdharkness-PC
Provider: 'Microsoft Software Shadow Copy provider 1.0'
Type: ClientAccessibleWriters
Attributes: Persistent, Client-accessible, No auto release, Differential, Auto recovered
##############################################################

Any help would be greatly appreciated. Kind regards,

Johm
Topic archived. No new replies allowed.