aboutsummaryrefslogtreecommitdiff
path: root/src/WixToolset.BootstrapperCore.Native/inc/BundleExtension.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/WixToolset.BootstrapperCore.Native/inc/BundleExtension.h')
-rw-r--r--src/WixToolset.BootstrapperCore.Native/inc/BundleExtension.h59
1 files changed, 59 insertions, 0 deletions
diff --git a/src/WixToolset.BootstrapperCore.Native/inc/BundleExtension.h b/src/WixToolset.BootstrapperCore.Native/inc/BundleExtension.h
new file mode 100644
index 00000000..5c7d1260
--- /dev/null
+++ b/src/WixToolset.BootstrapperCore.Native/inc/BundleExtension.h
@@ -0,0 +1,59 @@
1#pragma once
2// Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information.
3
4
5#if defined(__cplusplus)
6extern "C" {
7#endif
8
9enum BUNDLE_EXTENSION_MESSAGE
10{
11 BUNDLE_EXTENSION_MESSAGE_SEARCH,
12};
13
14typedef struct _BUNDLE_EXTENSION_SEARCH_ARGS
15{
16 DWORD cbSize;
17 LPCWSTR wzId;
18 LPCWSTR wzVariable;
19} BUNDLE_EXTENSION_SEARCH_ARGS;
20
21typedef struct _BUNDLE_EXTENSION_SEARCH_RESULTS
22{
23 DWORD cbSize;
24} BUNDLE_EXTENSION_SEARCH_RESULTS;
25
26extern "C" typedef HRESULT(WINAPI *PFN_BUNDLE_EXTENSION_PROC)(
27 __in BUNDLE_EXTENSION_MESSAGE message,
28 __in const LPVOID pvArgs,
29 __inout LPVOID pvResults,
30 __in_opt LPVOID pvContext
31 );
32
33typedef struct _BUNDLE_EXTENSION_CREATE_ARGS
34{
35 DWORD cbSize;
36 DWORD64 qwEngineAPIVersion;
37 PFN_BUNDLE_EXTENSION_ENGINE_PROC pfnBundleExtensionEngineProc;
38 LPVOID pvBundleExtensionEngineProcContext;
39 LPCWSTR wzBootstrapperWorkingFolder;
40 LPCWSTR wzBundleExtensionDataPath;
41} BUNDLE_EXTENSION_CREATE_ARGS;
42
43typedef struct _BUNDLE_EXTENSION_CREATE_RESULTS
44{
45 DWORD cbSize;
46 PFN_BUNDLE_EXTENSION_PROC pfnBundleExtensionProc;
47 LPVOID pvBundleExtensionProcContext;
48} BUNDLE_EXTENSION_CREATE_RESULTS;
49
50extern "C" typedef HRESULT(WINAPI *PFN_BUNDLE_EXTENSION_CREATE)(
51 __in const BUNDLE_EXTENSION_CREATE_ARGS* pArgs,
52 __inout BUNDLE_EXTENSION_CREATE_RESULTS* pResults
53 );
54
55extern "C" typedef void (WINAPI *PFN_BUNDLE_EXTENSION_DESTROY)();
56
57#if defined(__cplusplus)
58}
59#endif