diff options
Diffstat (limited to 'src/libs/dutil/WixToolset.DUtil/inc/polcutil.h')
-rw-r--r-- | src/libs/dutil/WixToolset.DUtil/inc/polcutil.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/src/libs/dutil/WixToolset.DUtil/inc/polcutil.h b/src/libs/dutil/WixToolset.DUtil/inc/polcutil.h new file mode 100644 index 00000000..13618043 --- /dev/null +++ b/src/libs/dutil/WixToolset.DUtil/inc/polcutil.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 | #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 | #ifdef __cplusplus | ||
38 | } | ||
39 | #endif | ||