Skip to content

Commit 3b2da19

Browse files
jevansaksCopilot
andcommitted
Add IVssBackupComponents and related VSS backup interfaces
Include vsbackup.h in the VSS partition to expose IVssBackupComponents, IVssBackupComponentsEx/Ex2/Ex3/Ex4, IVssExamineWriterMetadata/Ex/Ex2, IVssWMComponent, and factory functions (CreateVssBackupComponentsInternal, CreateVssExamineWriterMetadataInternal, etc.). The header was previously excluded with the comment that it contains C++ classes instead of COM interfaces, but the types are standard COM interfaces (IUnknown-derived with pure virtual methods) declared using C++ class syntax with __declspec(uuid(...)). ClangSharp handles these correctly. Inline wrapper functions (CreateVssBackupComponents, etc.) are excluded since they are not DLL exports - the *Internal variants are the real exports and are already mapped to VSSAPI.dll in libMappings.rsp. Fixes #2095 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent a63ec2e commit 3b2da19

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

generation/WinSDK/Partitions/VSS/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
#include <vss.h>
1818
#include <vswriter.h>
1919
#include <vsmgmt.h>
20-
//#include <vsbackup.h> This contains C++ classes instead of COM interfaces
20+
#include <vsbackup.h>
2121
#include <vsadmin.h>
2222
#include <vsprov.h>
2323
#include <vsserror.h>

generation/WinSDK/Partitions/VSS/settings.rsp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,15 @@ CreateWriter
44
CVssWriterEx
55
CreateWriterEx
66
CVssWriterEx2
7+
CreateVssBackupComponents
8+
CreateVssExamineWriterMetadata
9+
IsVolumeSnapshotted
10+
VssFreeSnapshotProperties
11+
GetProviderMgmtInterface
12+
ShouldBlockRevert
713
--traverse
814
<IncludeRoot>/um/vsadmin.h
15+
<IncludeRoot>/um/vsbackup.h
916
<IncludeRoot>/um/vsmgmt.h
1017
<IncludeRoot>/um/vsprov.h
1118
<IncludeRoot>/um/vss.h

0 commit comments

Comments
 (0)