diff options
Diffstat (limited to 'src/burn/engine/condition.h')
| -rw-r--r-- | src/burn/engine/condition.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/src/burn/engine/condition.h b/src/burn/engine/condition.h new file mode 100644 index 00000000..91627f3c --- /dev/null +++ b/src/burn/engine/condition.h | |||
| @@ -0,0 +1,39 @@ | |||
| 1 | #pragma once | ||
| 2 | // 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. | ||
| 3 | |||
| 4 | |||
| 5 | #if defined(__cplusplus) | ||
| 6 | extern "C" { | ||
| 7 | #endif | ||
| 8 | |||
| 9 | |||
| 10 | typedef struct _BURN_CONDITION | ||
| 11 | { | ||
| 12 | // The is an expression a condition string to fire the built-in "need newer OS" message | ||
| 13 | LPWSTR sczConditionString; | ||
| 14 | } BURN_CONDITION; | ||
| 15 | |||
| 16 | |||
| 17 | // function declarations | ||
| 18 | |||
| 19 | HRESULT ConditionEvaluate( | ||
| 20 | __in BURN_VARIABLES* pVariables, | ||
| 21 | __in_z LPCWSTR wzCondition, | ||
| 22 | __out BOOL* pf | ||
| 23 | ); | ||
| 24 | HRESULT ConditionGlobalCheck( | ||
| 25 | __in BURN_VARIABLES* pVariables, | ||
| 26 | __in BURN_CONDITION* pBlock, | ||
| 27 | __in BOOTSTRAPPER_DISPLAY display, | ||
| 28 | __in_z LPCWSTR wzBundleName, | ||
| 29 | __out DWORD *pdwExitCode, | ||
| 30 | __out BOOL *pfContinueExecution | ||
| 31 | ); | ||
| 32 | HRESULT ConditionGlobalParseFromXml( | ||
| 33 | __in BURN_CONDITION* pBlock, | ||
| 34 | __in IXMLDOMNode* pixnBundle | ||
| 35 | ); | ||
| 36 | |||
| 37 | #if defined(__cplusplus) | ||
| 38 | } | ||
| 39 | #endif | ||
