headers: Add vsadmin.idl file

Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Biswapriyo Nath <nathbappai@gmail.com>
Signed-off-by: LIU Hao <lh_mouse@126.com>
This commit is contained in:
Biswapriyo Nath 2022-02-04 10:35:06 +05:30 committed by LIU Hao
parent 6529cb25ca
commit 06d7d47bc6
2 changed files with 77 additions and 0 deletions

View File

@ -226,6 +226,7 @@ IDL_SRCS = \
include/urlhist.idl \
include/urlmon.idl \
include/vdslun.idl \
include/vsadmin.idl \
include/vss.idl \
include/wbemads.idl \
include/wbemcli.idl \

View File

@ -0,0 +1,76 @@
/**
* This file has no copyright assigned and is placed in the Public Domain.
* This file is part of the mingw-w64 runtime package.
* No warranty is given; refer to the file DISCLAIMER.PD within this package.
*/
cpp_quote("#include <winapifamily.h>")
cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)")
import "oaidl.idl";
import "ocidl.idl";
import "vss.idl";
[
object,
uuid(77ed5996-2f63-11d3-8a39-00c04f72d8e3),
pointer_default(unique)
]
interface IVssAdmin : IUnknown
{
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);
HRESULT UnregisterProvider(
[in] VSS_ID ProviderId);
HRESULT QueryProviders(
[out] IVssEnumObject **ppEnum);
HRESULT AbortAllSnapshotsInProgress(void);
}
[
object,
uuid(7858a9f8-b1fa-41a6-964f-b9b36b8cd8d8),
pointer_default(unique)
]
interface IVssAdminEx : IVssAdmin
{
HRESULT GetProviderCapability(
[in] VSS_ID pProviderId,
[out] ULONGLONG *pllOriginalCapabilityMask);
HRESULT GetProviderContext(
[in] VSS_ID ProviderId,
[out] LONG *plContext);
HRESULT SetProviderContext(
[in] VSS_ID ProviderId,
[in] LONG lContext);
}
[
uuid(9148a774-0304-4243-b269-a339aa96d264),
version(1.0)
]
library VSSAdmin
{
importlib("stdole2.tlb");
[
uuid(e579ab5f-1cc4-44b4-bed9-de0991ff0623),
]
coclass VSSCoordinator
{
[default] interface IVssAdmin;
interface IVssAdminEx;
}
}
cpp_quote("#endif /* WINAPI_PARTITION_DESKTOP */")