diff --git a/dlls/vssapi/main.c b/dlls/vssapi/main.c index 9234544c571..a24b32032d1 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 146feb4adfb..7bd47e8de09 100644 --- a/dlls/vssapi/vssapi.spec +++ b/dlls/vssapi/vssapi.spec @@ -75,7 +75,7 @@ @ stub ?Uninitialize@CVssJetWriter@@QAGXXZ @ thiscall -arch=i386 ?Unsubscribe@CVssWriter@@QAGJXZ(ptr) VSSAPI_CVssWriter_Unsubscribe @ cdecl -arch=win64 ?Unsubscribe@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 0b5a2d3fcb7..b2dca11f8fe 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