/
vscoordint.idl
334 lines (283 loc) · 8.77 KB
/
vscoordint.idl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
///////////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2000 Microsoft Corporation
//
///////////////////////////////////////////////////////////////////////////////
// Imports
//
import "oaidl.idl";
import "ocidl.idl";
import "vss.idl";
///////////////////////////////////////////////////////////////////////////////
// Interfaces
//
[
object,
uuid(da9f41d4-1a5d-41d0-a614-6dfd78df5d05),
helpstring("IVssCoordinator interface"),
pointer_default(unique)
]
interface IVssCoordinator : IUnknown
{
[helpstring("method SetContext")]
HRESULT SetContext(
[in] LONG lContext
);
[helpstring("method StartSnapshotSet")]
HRESULT StartSnapshotSet(
[out] VSS_ID* pSnapshotSetId
);
[helpstring("method AddToSnapshotSet")]
HRESULT AddToSnapshotSet(
[in] VSS_PWSZ pwszVolumeName,
[in] VSS_ID ProviderId,
[out] VSS_ID *pSnapshotId
);
[helpstring("method DoSnapshotSet")]
HRESULT DoSnapshotSet(
[in] IDispatch *pWriterCallback,
[out] IVssAsync** ppAsync
);
[helpstring("method GetSnapshotProperties")]
HRESULT GetSnapshotProperties(
[in] VSS_ID SnapshotId,
[out] VSS_SNAPSHOT_PROP *pProp
);
[helpstring("method ExposeSnapshot")]
HRESULT ExposeSnapshot(
[in] VSS_ID SnapshotId,
[in] VSS_PWSZ wszPathFromRoot,
[in] LONG lAttributes,
[in] VSS_PWSZ wszExpose,
[out] VSS_PWSZ *pwszExposed
);
[helpstring("method ImportSnapshots")]
HRESULT ImportSnapshots(
[in] BSTR bstrXMLSnapshotSet,
[out] IVssAsync** ppAsync
);
[helpstring("method Query")]
HRESULT Query(
[in] VSS_ID QueriedObjectId,
[in] VSS_OBJECT_TYPE eQueriedObjectType,
[in] VSS_OBJECT_TYPE eReturnedObjectsType,
[out] IVssEnumObject **ppEnum
);
[helpstring("method DeleteSnapshots")]
HRESULT DeleteSnapshots(
[in] VSS_ID SourceObjectId,
[in] VSS_OBJECT_TYPE eSourceObjectType,
[in] BOOL bForceDelete,
[out] LONG* plDeletedSnapshots,
[out] VSS_ID* pNondeletedSnapshotID
);
[helpstring("method BreakSnapshotSet")]
HRESULT BreakSnapshotSet(
[in] VSS_ID SnapshotSetId
);
[helpstring("method RevertToSnapshot")]
HRESULT RevertToSnapshot(
[in] VSS_ID SnapshotId,
[in] BOOL bForceDismount
);
[helpstring("method QueryRevertStatus")]
HRESULT QueryRevertStatus(
[in] VSS_PWSZ pwszVolume,
[out] IVssAsync **ppAsync
);
[helpstring("method IsVolumeSupported")]
HRESULT IsVolumeSupported(
[in] VSS_ID ProviderId,
[in] VSS_PWSZ pwszVolumeName,
[out] BOOL * pbSupportedByThisProvider
);
[helpstring("method IsVolumeSnapshotted")]
HRESULT IsVolumeSnapshotted(
[in] VSS_ID ProviderId,
[in] VSS_PWSZ pwszVolumeName,
[out] BOOL * pbSnapshotsPresent,
[out] LONG * plSnapshotCompatibility
);
[helpstring("method SetWriterInstances")]
HRESULT SetWriterInstances(
[in] LONG lWriterInstanceIdCount,
[in, unique, size_is(lWriterInstanceIdCount)]
VSS_ID *rgWriterInstanceId
);
};
[
object,
uuid(BF5AEED7-92BA-4484-97BE-EF7DA4825680),
helpstring("IVssRemoteCoordinator interface"),
pointer_default(unique)
]
interface IVssRemoteCoordinator : IUnknown
{
[helpstring("method SetContext")]
HRESULT SetContext(
[in] LONG lContext
);
[helpstring("method StartSnapshotSet")]
HRESULT StartSnapshotSet(
[in] VSS_PWSZ pwszMachineName,
[in] VSS_ID SnapshotSetId
);
[helpstring("method AddToSnapshotSet")]
HRESULT AddToSnapshotSet(
[in] VSS_PWSZ pwszShareName,
[in] VSS_ID ProviderId,
[out] VSS_ID *pSnapshotId
);
[helpstring("method EndPrepareAllSnapshots")]
HRESULT EndprepareAllSnapshots(
);
[helpstring("method DoSnapshotSet")]
HRESULT DoSnapshotSet(
[in] LONG lTotalSnapshotsCount,
[out] IVssAsync** ppAsync
);
[helpstring("method GetSnapshotProperties")]
HRESULT GetSnapshotProperties(
[in] VSS_ID SnapshotId,
[out] VSS_SNAPSHOT_PROP *pProp
);
[helpstring("method ExposeSnapshot")]
HRESULT ExposeSnapshot(
[in] VSS_ID SnapshotId,
[in] VSS_PWSZ wszPathFromRoot,
[in] LONG lContext,
[in] VSS_PWSZ wszExpose,
[out] VSS_PWSZ *pwszExposed
);
[helpstring("method Query")]
HRESULT Query(
[in] VSS_PWSZ pwszObjectName,
[in] VSS_ID QueriedObjectId,
[in] VSS_OBJECT_TYPE eQueriedObjectType,
[in] VSS_OBJECT_TYPE eReturnedObjectsType,
[out] IVssEnumObject **ppEnum
);
[helpstring("method DeleteSnapshots")]
HRESULT DeleteSnapshots(
[in] VSS_ID SourceObjectId,
[in] VSS_OBJECT_TYPE eSourceObjectType,
[in] BOOL bForceDelete,
[out] LONG* plDeletedSnapshots,
[out] VSS_ID* pNondeletedSnapshotID
);
[helpstring("method BreakSnapshotSet")]
HRESULT BreakSnapshotSet(
[in] VSS_ID SnapshotSetId
);
[helpstring("method IsVolumeSupported")]
HRESULT IsShareSupported(
[in] VSS_ID ProviderId,
[in] VSS_PWSZ pwszShareName,
[out] BOOL * pbSupportedByThisProvider
);
[helpstring("method IsVolumeSnapshotted")]
HRESULT IsShareSnapshotted(
[in] VSS_ID ProviderId,
[in] VSS_PWSZ pwszShareName,
[out] BOOL * pbSnapshotsPresent,
[out] LONG * plSnapshotCompatibility
);
};
[
object,
uuid(F2C2787D-95AB-40D4-942D-298F5F757874),
helpstring("IVssRemsnapCoordinatorInternal interface"),
pointer_default(unique)
]
interface IVssRemsnapCoordinatorInternal : IUnknown
{
[helpstring("method OnSnapshotSetDone")]
HRESULT OnSnapshotSetDone(
);
[helpstring("method OnSnapshotSetAbort")]
HRESULT OnSnapshotSetAbort(
);
};
[
object,
uuid(D6222095-05C3-42f3-81D9-A4A0CEC05C26),
helpstring("IVssShim interface"),
pointer_default(unique)
]
interface IVssShim : IUnknown
{
[helpstring("method SimulateSnapshotFreeze")]
HRESULT SimulateSnapshotFreeze(
[in] VSS_ID guidSnapshotSetId,
[in] ULONG ulOptionFlags,
[in] ULONG ulVolumeCount,
[in, unique, size_is(ulVolumeCount, ) ]
VSS_PWSZ* ppwszVolumeNamesArray,
[out] IVssAsync** ppAsync
);
[helpstring("method SimulateSnapshotThaw")]
HRESULT SimulateSnapshotThaw(
[in] VSS_ID guidSnapshotSetId
);
[helpstring("method WaitForSubscribingCompletion")]
HRESULT WaitForSubscribingCompletion();
};
[
object,
uuid(77ED5996-2F63-11d3-8A39-00C04F72D8E3),
helpstring("IVssAdmin interface"),
pointer_default(unique)
]
interface IVssAdmin : IUnknown
{
[helpstring("method RegisterProvider")]
HRESULT RegisterProvider(
[in] VSS_ID pProviderId,
[in] CLSID ClassId,
[in] VSS_PWSZ pwszProviderName,
[in] VSS_PROVIDER_TYPE eProviderType,
[in] VSS_PWSZ pwszProviderVersion,
[in] VSS_ID ProviderVersionId
);
[helpstring("method UnregisterProvider")]
HRESULT UnregisterProvider(
[in] VSS_ID ProviderId
);
[helpstring("method QueryProviders")]
HRESULT QueryProviders(
[out] IVssEnumObject**ppEnum
);
[helpstring("method AbortAllSnapshotsInProgress")]
HRESULT AbortAllSnapshotsInProgress(
);
};
////////////////////////////////////////////////////////
// VSS Type Library
[
uuid(97AEFDD8-2F60-11d3-8A39-00C04F72D8E3),
version(1.0),
helpstring("Volume Shadow Copy Service 1.0 Type Library")
]
library VSS
{
importlib("stdole2.tlb");
[
uuid(E579AB5F-1CC4-44b4-BED9-DE0991FF0623),
helpstring("VSSCoordinator Class")
]
coclass VSSCoordinator
{
[default] interface IVssCoordinator;
interface IVssAdmin;
interface IVssRemsnapCoordinatorInternal;
}
[
uuid(95243A62-2F9B-4FDF-B437-40D965F6D17F),
helpstring("VSSRemoteCoordinator Class")
]
coclass VSSRemoteCoordinator
{
[default] interface IVssRemoteCoordinator;
interface IVssRemsnapCoordinatorInternal;
}
}