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.h60
1 files changed, 60 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..be76a1a5
--- /dev/null
+++ b/src/WixToolset.BootstrapperCore.Native/inc/BundleExtension.h
@@ -0,0 +1,60 @@
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 LPCWSTR wzExtensionId;
42} BUNDLE_EXTENSION_CREATE_ARGS;
43
44typedef struct _BUNDLE_EXTENSION_CREATE_RESULTS
45{
46 DWORD cbSize;
47 PFN_BUNDLE_EXTENSION_PROC pfnBundleExtensionProc;
48 LPVOID pvBundleExtensionProcContext;
49} BUNDLE_EXTENSION_CREATE_RESULTS;
50
51extern "C" typedef HRESULT(WINAPI *PFN_BUNDLE_EXTENSION_CREATE)(
52 __in const BUNDLE_EXTENSION_CREATE_ARGS* pArgs,
53 __inout BUNDLE_EXTENSION_CREATE_RESULTS* pResults
54 );
55
56extern "C" typedef void (WINAPI *PFN_BUNDLE_EXTENSION_DESTROY)();
57
58#if defined(__cplusplus)
59}
60#endif