From 9effb02867e06ca4368edc3e90b815ef51ba8d23 Mon Sep 17 00:00:00 2001 From: Biswapriyo Nath <[email protected]> Date: Fri, 4 Feb 2022 10:35:06 +0530 Subject: [PATCH 2/3] headers: Add vsadmin.idl file
Signed-off-by: Biswapriyo Nath <[email protected]> --- mingw-w64-headers/Makefile.am | 1 + mingw-w64-headers/include/vsadmin.idl | 76 +++++++++++++++++++++++++++ 2 files changed, 77 insertions(+) create mode 100644 mingw-w64-headers/include/vsadmin.idl diff --git a/mingw-w64-headers/Makefile.am b/mingw-w64-headers/Makefile.am index fb14602..574b823 100644 --- a/mingw-w64-headers/Makefile.am +++ b/mingw-w64-headers/Makefile.am @@ -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 \ diff --git a/mingw-w64-headers/include/vsadmin.idl b/mingw-w64-headers/include/vsadmin.idl new file mode 100644 index 0000000..ce70e8b --- /dev/null +++ b/mingw-w64-headers/include/vsadmin.idl @@ -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 */") -- 2.35.1
_______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
