From 61847dddd4fd497057c780658e383c4627de19ec Mon Sep 17 00:00:00 2001 From: Sean Hall Date: Sat, 29 Dec 2018 22:12:08 -0600 Subject: Import code from old v4 repo --- src/engine/EngineForApplication.h | 44 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 src/engine/EngineForApplication.h (limited to 'src/engine/EngineForApplication.h') diff --git a/src/engine/EngineForApplication.h b/src/engine/EngineForApplication.h new file mode 100644 index 00000000..1b755acc --- /dev/null +++ b/src/engine/EngineForApplication.h @@ -0,0 +1,44 @@ +#pragma once +// 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. + + +#if defined(__cplusplus) +extern "C" { +#endif + +// constants + +enum WM_BURN +{ + WM_BURN_FIRST = WM_APP + 0xFFF, // this enum value must always be first. + + WM_BURN_DETECT, + WM_BURN_PLAN, + WM_BURN_ELEVATE, + WM_BURN_APPLY, + WM_BURN_LAUNCH_APPROVED_EXE, + WM_BURN_QUIT, + + WM_BURN_LAST, // this enum value must always be last. +}; + +// structs + +struct BOOTSTRAPPER_ENGINE_CONTEXT +{ + BURN_ENGINE_STATE* pEngineState; + DWORD dwThreadId; +}; + +// function declarations + +HRESULT WINAPI EngineForApplicationProc( + __in BOOTSTRAPPER_ENGINE_MESSAGE message, + __in const LPVOID pvArgs, + __inout LPVOID pvResults, + __in_opt LPVOID pvContext + ); + +#if defined(__cplusplus) +} +#endif -- cgit v1.2.3-55-g6feb