[PATCH 5/6] vssapi: Add CreateVssBackupComponentsInternal stub

Alistair Leslie-Hughes leslie_alistair at hotmail.com
Sun Feb 10 16:48:13 CST 2019


Signed-off-by: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
---
 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..e2f5a54 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
-- 
1.9.1




More information about the wine-devel mailing list