From 0d3d54992104288e9ee0c834d0b96e8502fd2d42 Mon Sep 17 00:00:00 2001 From: Rob Mensching Date: Thu, 11 Jan 2024 18:26:20 -0800 Subject: Move the BootstrapperApplication out of proc --- .../burn/balutil/inc/IBootstrapperApplication.h | 29 +++++++++++++--------- 1 file changed, 17 insertions(+), 12 deletions(-) (limited to 'src/api/burn/balutil/inc/IBootstrapperApplication.h') diff --git a/src/api/burn/balutil/inc/IBootstrapperApplication.h b/src/api/burn/balutil/inc/IBootstrapperApplication.h index faa211e4..6eb32ee6 100644 --- a/src/api/burn/balutil/inc/IBootstrapperApplication.h +++ b/src/api/burn/balutil/inc/IBootstrapperApplication.h @@ -1,6 +1,8 @@ #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. +#include + DECLARE_INTERFACE_IID_(IBootstrapperApplication, IUnknown, "53C31D56-49C0-426B-AB06-099D717C67FE") { @@ -9,8 +11,7 @@ DECLARE_INTERFACE_IID_(IBootstrapperApplication, IUnknown, "53C31D56-49C0-426B-A STDMETHOD(BAProc)( __in BOOTSTRAPPER_APPLICATION_MESSAGE message, __in const LPVOID pvArgs, - __inout LPVOID pvResults, - __in_opt LPVOID pvContext + __inout LPVOID pvResults ) = 0; // BAProcFallback - The PFN_BOOTSTRAPPER_APPLICATION_PROC can call this method @@ -20,10 +21,22 @@ DECLARE_INTERFACE_IID_(IBootstrapperApplication, IUnknown, "53C31D56-49C0-426B-A __in BOOTSTRAPPER_APPLICATION_MESSAGE message, __in const LPVOID pvArgs, __inout LPVOID pvResults, - __inout HRESULT* phr, - __in_opt LPVOID pvContext + __inout HRESULT* phr + ) = 0; + + // OnCreate - called when the bootstrapper application is created. + // + virtual STDMETHODIMP OnCreate( + __in IBootstrapperEngine* pEngine, + __in BOOTSTRAPPER_COMMAND* pCommand ) = 0; + // OnDestroy - called before the bootstrapper application stops. + // + STDMETHOD(OnDestroy)( + __in BOOL fReload + ) = 0; + // OnStartup - called when the engine is ready for the bootstrapper application to start. // STDMETHOD(OnStartup)() = 0; @@ -688,14 +701,6 @@ DECLARE_INTERFACE_IID_(IBootstrapperApplication, IUnknown, "53C31D56-49C0-426B-A __in HRESULT hrStatus ) = 0; - STDMETHOD(OnSetUpdateBegin)() = 0; - - STDMETHOD(OnSetUpdateComplete)( - __in HRESULT hrStatus, - __in_z_opt LPCWSTR wzPreviousPackageId, - __in_z_opt LPCWSTR wzNewPackageId - ) = 0; - // OnPlanRestoreRelatedBundle - called when the engine begins planning an upgrade related bundle for restoring in case of failure. STDMETHOD(OnPlanRestoreRelatedBundle)( __in_z LPCWSTR wzBundleId, -- cgit v1.2.3-55-g6feb