diff options
Diffstat (limited to 'src/api/burn/mbanative/mbanative.cpp')
| -rw-r--r-- | src/api/burn/mbanative/mbanative.cpp | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/api/burn/mbanative/mbanative.cpp b/src/api/burn/mbanative/mbanative.cpp new file mode 100644 index 00000000..98ea3c30 --- /dev/null +++ b/src/api/burn/mbanative/mbanative.cpp | |||
| @@ -0,0 +1,29 @@ | |||
| 1 | // 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. | ||
| 2 | |||
| 3 | #include "precomp.h" | ||
| 4 | #include "BalBaseBootstrapperApplicationProc.h" | ||
| 5 | |||
| 6 | extern "C" HRESULT WINAPI InitializeFromCreateArgs( | ||
| 7 | __in const BOOTSTRAPPER_CREATE_ARGS* pArgs, | ||
| 8 | __inout BOOTSTRAPPER_COMMAND* pCommand, | ||
| 9 | __out IBootstrapperEngine** ppEngine | ||
| 10 | ) | ||
| 11 | { | ||
| 12 | HRESULT hr = S_OK; | ||
| 13 | |||
| 14 | hr = BalInitializeFromCreateArgs(pArgs, ppEngine); | ||
| 15 | ExitOnFailure(hr, "Failed to initialize Bal."); | ||
| 16 | |||
| 17 | memcpy_s(pCommand, pCommand->cbSize, pArgs->pCommand, min(pArgs->pCommand->cbSize, pCommand->cbSize)); | ||
| 18 | LExit: | ||
| 19 | return hr; | ||
| 20 | } | ||
| 21 | |||
| 22 | extern "C" void WINAPI StoreBAInCreateResults( | ||
| 23 | __inout BOOTSTRAPPER_CREATE_RESULTS* pResults, | ||
| 24 | __in IBootstrapperApplication* pBA | ||
| 25 | ) | ||
| 26 | { | ||
| 27 | pResults->pfnBootstrapperApplicationProc = BalBaseBootstrapperApplicationProc; | ||
| 28 | pResults->pvBootstrapperApplicationProcContext = pBA; | ||
| 29 | } | ||
