| 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 | #ifdef __cplusplus |
| 6 | extern "C" { |
| 7 | #endif |
| 8 | |
| 9 | const LPCWSTR POLICY_BURN_REGISTRY_PATH = L"WiX\\Burn"; |
| 10 | |
| 11 | /******************************************************************** |
| 12 | PolcReadNumber - reads a number from policy. |
| 13 | |
| 14 | NOTE: S_FALSE returned if policy not set. |
| 15 | NOTE: out is set to default on S_FALSE or any error. |
| 16 | ********************************************************************/ |
| 17 | HRESULT DAPI PolcReadNumber( |
| 18 | __in_z LPCWSTR wzPolicyPath, |
| 19 | __in_z LPCWSTR wzPolicyName, |
| 20 | __in DWORD dwDefault, |
| 21 | __out DWORD* pdw |
| 22 | ); |
| 23 | |
| 24 | /******************************************************************** |
| 25 | PolcReadString - reads a string from policy. |
| 26 | |
| 27 | NOTE: S_FALSE returned if policy not set. |
| 28 | NOTE: out is set to default on S_FALSE or any error. |
| 29 | ********************************************************************/ |
| 30 | HRESULT DAPI PolcReadString( |
| 31 | __in_z LPCWSTR wzPolicyPath, |
| 32 | __in_z LPCWSTR wzPolicyName, |
| 33 | __in_z_opt LPCWSTR wzDefault, |
| 34 | __deref_out_z LPWSTR* pscz |
| 35 | ); |
| 36 | |
| 37 | /******************************************************************** |
| 38 | PolcReadUnexpandedString - reads a string from policy, without expanding it. |
| 39 | |
| 40 | NOTE: S_FALSE returned if policy not set. |
| 41 | NOTE: out is set to default on S_FALSE or any error. |
| 42 | ********************************************************************/ |
| 43 | HRESULT DAPI PolcReadUnexpandedString( |
| 44 | __in_z LPCWSTR wzPolicyPath, |
| 45 | __in_z LPCWSTR wzPolicyName, |
| 46 | __in_z_opt LPCWSTR wzDefault, |
| 47 | __inout BOOL* pfNeedsExpansion, |
| 48 | __deref_out_z LPWSTR* pscz |
| 49 | ); |
| 50 | |
| 51 | #ifdef __cplusplus |
| 52 | } |
| 53 | #endif |