aboutsummaryrefslogtreecommitdiff
path: root/src/api/burn/inc/BootstrapperExtension.h
diff options
context:
space:
mode:
authorRob Mensching <rob@firegiant.com>2024-03-07 09:41:29 -0800
committerRob Mensching <rob@firegiant.com>2024-03-07 10:55:57 -0800
commit5baa1dfe8ba2a3bd4728bca118fe1de225f848d4 (patch)
tree4f1c216075173e0e4d0863ada195f21d7ec976e0 /src/api/burn/inc/BootstrapperExtension.h
parentdea25ba9bcfd65200b60339c2e4bc060cdf20723 (diff)
downloadwix-5baa1dfe8ba2a3bd4728bca118fe1de225f848d4.tar.gz
wix-5baa1dfe8ba2a3bd4728bca118fe1de225f848d4.tar.bz2
wix-5baa1dfe8ba2a3bd4728bca118fe1de225f848d4.zip
Rename "bundle extension" to "bootstrapper extension" for more consistency
Also renames WixToolet.BextUtil nupkg to WixToolset.BootstrapperExtensionApi.
Diffstat (limited to 'src/api/burn/inc/BootstrapperExtension.h')
-rw-r--r--src/api/burn/inc/BootstrapperExtension.h61
1 files changed, 61 insertions, 0 deletions
diff --git a/src/api/burn/inc/BootstrapperExtension.h b/src/api/burn/inc/BootstrapperExtension.h
new file mode 100644
index 00000000..b1fa6408
--- /dev/null
+++ b/src/api/burn/inc/BootstrapperExtension.h
@@ -0,0 +1,61 @@
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#include <BootstrapperExtensionEngine.h>
5
6#if defined(__cplusplus)
7extern "C" {
8#endif
9
10enum BOOTSTRAPPER_EXTENSION_MESSAGE
11{
12 BOOTSTRAPPER_EXTENSION_MESSAGE_SEARCH,
13};
14
15typedef struct _BOOTSTRAPPER_EXTENSION_SEARCH_ARGS
16{
17 DWORD cbSize;
18 LPCWSTR wzId;
19 LPCWSTR wzVariable;
20} BOOTSTRAPPER_EXTENSION_SEARCH_ARGS;
21
22typedef struct _BOOTSTRAPPER_EXTENSION_SEARCH_RESULTS
23{
24 DWORD cbSize;
25} BOOTSTRAPPER_EXTENSION_SEARCH_RESULTS;
26
27extern "C" typedef HRESULT(WINAPI *PFN_BOOTSTRAPPER_EXTENSION_PROC)(
28 __in BOOTSTRAPPER_EXTENSION_MESSAGE message,
29 __in const LPVOID pvArgs,
30 __inout LPVOID pvResults,
31 __in_opt LPVOID pvContext
32 );
33
34typedef struct _BOOTSTRAPPER_EXTENSION_CREATE_ARGS
35{
36 DWORD cbSize;
37 DWORD64 qwEngineAPIVersion;
38 PFN_BOOTSTRAPPER_EXTENSION_ENGINE_PROC pfnBootstrapperExtensionEngineProc;
39 LPVOID pvBootstrapperExtensionEngineProcContext;
40 LPCWSTR wzBootstrapperWorkingFolder;
41 LPCWSTR wzBootstrapperExtensionDataPath;
42 LPCWSTR wzExtensionId;
43} BOOTSTRAPPER_EXTENSION_CREATE_ARGS;
44
45typedef struct _BOOTSTRAPPER_EXTENSION_CREATE_RESULTS
46{
47 DWORD cbSize;
48 PFN_BOOTSTRAPPER_EXTENSION_PROC pfnBootstrapperExtensionProc;
49 LPVOID pvBootstrapperExtensionProcContext;
50} BOOTSTRAPPER_EXTENSION_CREATE_RESULTS;
51
52extern "C" typedef HRESULT(WINAPI *PFN_BOOTSTRAPPER_EXTENSION_CREATE)(
53 __in const BOOTSTRAPPER_EXTENSION_CREATE_ARGS* pArgs,
54 __inout BOOTSTRAPPER_EXTENSION_CREATE_RESULTS* pResults
55 );
56
57extern "C" typedef void (WINAPI *PFN_BOOTSTRAPPER_EXTENSION_DESTROY)();
58
59#if defined(__cplusplus)
60}
61#endif