Alistair Leslie-Hughes : vssapi: Add CreateVssBackupComponentsInternal stub.

Alexandre Julliard julliard at winehq.org
Mon Feb 11 16:12:10 CST 2019


Module: wine
Branch: master
Commit: ce9b5a7e1782828f0a84d31eff73cf643ea4fe85
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=ce9b5a7e1782828f0a84d31eff73cf643ea4fe85

Author: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
Date:   Sun Feb 10 22:48:13 2019 +0000

vssapi: Add CreateVssBackupComponentsInternal stub.

Signed-off-by: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/vssapi/main.c      |  7 +++++++
 dlls/vssapi/vssapi.spec |  2 +-
 include/vsbackup.idl    | 11 +++++++++++
 3 files changed, 19 insertions(+), 1 deletion(-)

diff --git a/dlls/vssapi/main.c b/dlls/vssapi/main.c
index 9234544..a24b320 100644
--- a/dlls/vssapi/main.c
+++ b/dlls/vssapi/main.c
@@ -22,6 +22,7 @@
 #include "winbase.h"
 #include "vss.h"
 #include "vswriter.h"
+#include "vsbackup.h"
 #include "wine/debug.h"
 
 WINE_DEFAULT_DEBUG_CHANNEL( vssapi );
@@ -107,3 +108,9 @@ HRESULT __thiscall VSSAPI_CVssWriter_Unsubscribe( struct CVssWriter *writer )
     FIXME( "%p\n", writer );
     return S_OK;
 }
+
+HRESULT WINAPI CreateVssBackupComponentsInternal(IVssBackupComponents **backup)
+{
+    FIXME("%p\n", backup);
+    return E_NOTIMPL;
+}
diff --git a/dlls/vssapi/vssapi.spec b/dlls/vssapi/vssapi.spec
index 146feb4..7bd47e8 100644
--- a/dlls/vssapi/vssapi.spec
+++ b/dlls/vssapi/vssapi.spec
@@ -75,7 +75,7 @@
 @ stub ?Uninitialize at CVssJetWriter@@QAGXXZ
 @ thiscall -arch=i386 ?Unsubscribe at CVssWriter@@QAGJXZ(ptr) VSSAPI_CVssWriter_Unsubscribe
 @ cdecl -arch=win64 ?Unsubscribe at CVssWriter@@QEAAJXZ(ptr) VSSAPI_CVssWriter_Unsubscribe
-@ stub CreateVssBackupComponentsInternal
+@ stdcall CreateVssBackupComponentsInternal(ptr)
 @ stub CreateVssExamineWriterMetadataInternal
 @ stub CreateVssExpressWriterInternal
 @ stub CreateWriter
diff --git a/include/vsbackup.idl b/include/vsbackup.idl
index 0b5a2d3..b2dca11 100644
--- a/include/vsbackup.idl
+++ b/include/vsbackup.idl
@@ -25,6 +25,17 @@ interface IVssEnumObject;
 interface IVssExamineWriterMetadata;
 interface IVssWriterComponentsExt;
 
+cpp_quote("#ifdef _cplusplus")
+cpp_quote("extern \"C\" {")
+cpp_quote("#endif")
+cpp_quote("HRESULT WINAPI CreateVssBackupComponentsInternal(IVssBackupComponents **backup);")
+cpp_quote("#ifdef _cplusplus")
+cpp_quote("}")
+cpp_quote("#endif")
+
+cpp_quote("static inline HRESULT CreateVssBackupComponents(IVssBackupComponents **backup)")
+cpp_quote("     { return CreateVssBackupComponentsInternal(backup); }")
+
 [
     uuid("665c1d5f-c218-414d-a05d-7fef5f9d5c86"),
     local




More information about the wine-cvs mailing list