| 1 |
/** |
| 2 |
* This file has no copyright assigned and is placed in the Public Domain. |
| 3 |
* This file is part of the mingw-w64 runtime package. |
| 4 |
* No warranty is given; refer to the file DISCLAIMER.PD within this package. |
| 5 |
*/ |
| 6 |
|
| 7 |
cpp_quote("#include <winapifamily.h>") |
| 8 |
|
| 9 |
cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") |
| 10 |
|
| 11 |
import "oaidl.idl"; |
| 12 |
import "ocidl.idl"; |
| 13 |
import "vss.idl"; |
| 14 |
|
| 15 |
[ |
| 16 |
object, |
| 17 |
uuid(77ed5996-2f63-11d3-8a39-00c04f72d8e3), |
| 18 |
pointer_default(unique) |
| 19 |
] |
| 20 |
interface IVssAdmin : IUnknown |
| 21 |
{ |
| 22 |
HRESULT RegisterProvider( |
| 23 |
[in] VSS_ID pProviderId, |
| 24 |
[in] CLSID ClassId, |
| 25 |
[in] VSS_PWSZ pwszProviderName, |
| 26 |
[in] VSS_PROVIDER_TYPE eProviderType, |
| 27 |
[in] VSS_PWSZ pwszProviderVersion, |
| 28 |
[in] VSS_ID ProviderVersionId); |
| 29 |
|
| 30 |
HRESULT UnregisterProvider( |
| 31 |
[in] VSS_ID ProviderId); |
| 32 |
|
| 33 |
HRESULT QueryProviders( |
| 34 |
[out] IVssEnumObject **ppEnum); |
| 35 |
|
| 36 |
HRESULT AbortAllSnapshotsInProgress(void); |
| 37 |
} |
| 38 |
|
| 39 |
[ |
| 40 |
object, |
| 41 |
uuid(7858a9f8-b1fa-41a6-964f-b9b36b8cd8d8), |
| 42 |
pointer_default(unique) |
| 43 |
] |
| 44 |
interface IVssAdminEx : IVssAdmin |
| 45 |
{ |
| 46 |
HRESULT GetProviderCapability( |
| 47 |
[in] VSS_ID pProviderId, |
| 48 |
[out] ULONGLONG *pllOriginalCapabilityMask); |
| 49 |
|
| 50 |
HRESULT GetProviderContext( |
| 51 |
[in] VSS_ID ProviderId, |
| 52 |
[out] LONG *plContext); |
| 53 |
|
| 54 |
HRESULT SetProviderContext( |
| 55 |
[in] VSS_ID ProviderId, |
| 56 |
[in] LONG lContext); |
| 57 |
} |
| 58 |
|
| 59 |
[ |
| 60 |
uuid(9148a774-0304-4243-b269-a339aa96d264), |
| 61 |
version(1.0) |
| 62 |
] |
| 63 |
library VSSAdmin |
| 64 |
{ |
| 65 |
importlib("stdole2.tlb"); |
| 66 |
[ |
| 67 |
uuid(e579ab5f-1cc4-44b4-bed9-de0991ff0623), |
| 68 |
] |
| 69 |
coclass VSSCoordinator |
| 70 |
{ |
| 71 |
[default] interface IVssAdmin; |
| 72 |
interface IVssAdminEx; |
| 73 |
} |
| 74 |
} |
| 75 |
|
| 76 |
cpp_quote("#endif /* WINAPI_PARTITION_DESKTOP */") |