| 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 | |
| 5 | class CTestBootstrapperApplication : public CBootstrapperApplicationBase |
| 6 | { |
| 7 | public: |
| 8 | CTestBootstrapperApplication() : CBootstrapperApplicationBase() |
| 9 | { |
| 10 | } |
| 11 | }; |
| 12 | |
| 13 | HRESULT CreateBootstrapperApplication( |
| 14 | __out IBootstrapperApplication** ppApplication |
| 15 | ) |
| 16 | { |
| 17 | HRESULT hr = S_OK; |
| 18 | CTestBootstrapperApplication* pApplication = NULL; |
| 19 | |
| 20 | pApplication = new CTestBootstrapperApplication(); |
| 21 | ExitOnNull(pApplication, hr, E_OUTOFMEMORY, "Failed to create new test bootstrapper application object."); |
| 22 | |
| 23 | *ppApplication = pApplication; |
| 24 | pApplication = NULL; |
| 25 | |
| 26 | LExit: |
| 27 | ReleaseObject(pApplication); |
| 28 | return hr; |
| 29 | } |