Skip to content

Commit

Permalink
Get BA functions working.
Browse files Browse the repository at this point in the history
  • Loading branch information
robmen committed Feb 27, 2024
1 parent 4d2c9c9 commit e630cd3
Show file tree
Hide file tree
Showing 96 changed files with 1,702 additions and 306 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -750,6 +750,7 @@ struct BA_ONCREATE_RESULTS
struct BA_ONDESTROY_ARGS
{
DWORD cbSize;
BOOL fReload;
};

struct BA_ONDESTROY_RESULTS
Expand Down
4 changes: 2 additions & 2 deletions src/api/burn/WixToolset.Mba.Core/BootstrapperApplication.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1446,9 +1446,9 @@ int IBootstrapperApplication.OnCreate(IBootstrapperEngine engine, ref Command co
return args.HResult;
}

int IBootstrapperApplication.OnDestroy()
int IBootstrapperApplication.OnDestroy(bool reload)
{
DestroyEventArgs args = new DestroyEventArgs();
DestroyEventArgs args = new DestroyEventArgs(reload);
this.OnDestroy(args);

return args.HResult;
Expand Down
8 changes: 7 additions & 1 deletion src/api/burn/WixToolset.Mba.Core/EventArgs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -234,9 +234,15 @@ public class DestroyEventArgs : HResultEventArgs
/// This class is for events raised by the engine.
/// It is not intended to be instantiated by user code.
/// </summary>
public DestroyEventArgs()
public DestroyEventArgs(bool reload)
{
this.Reload = reload;
}

/// <summary>
/// Bootstrapper application is being reloaded.
/// </summary>
public bool Reload { get; }
}

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ ref int phr
/// </summary>
[PreserveSig]
[return: MarshalAs(UnmanagedType.I4)]
int OnDestroy();
int OnDestroy(bool reload);

/// <summary>
/// See <see cref="IDefaultBootstrapperApplication.Startup"/>.
Expand Down
Loading

0 comments on commit e630cd3

Please sign in to comment.