diff options
Diffstat (limited to 'src/libs/dutil/WixToolset.DUtil/inc')
-rw-r--r-- | src/libs/dutil/WixToolset.DUtil/inc/envutil.h | 11 | ||||
-rw-r--r-- | src/libs/dutil/WixToolset.DUtil/inc/pathutil.h | 9 | ||||
-rw-r--r-- | src/libs/dutil/WixToolset.DUtil/inc/polcutil.h | 14 | ||||
-rw-r--r-- | src/libs/dutil/WixToolset.DUtil/inc/procutil.h | 10 |
4 files changed, 44 insertions, 0 deletions
diff --git a/src/libs/dutil/WixToolset.DUtil/inc/envutil.h b/src/libs/dutil/WixToolset.DUtil/inc/envutil.h index 8491b27b..4e4f6197 100644 --- a/src/libs/dutil/WixToolset.DUtil/inc/envutil.h +++ b/src/libs/dutil/WixToolset.DUtil/inc/envutil.h | |||
@@ -16,6 +16,17 @@ HRESULT DAPI EnvExpandEnvironmentStrings( | |||
16 | __out_opt SIZE_T* pcchExpanded | 16 | __out_opt SIZE_T* pcchExpanded |
17 | ); | 17 | ); |
18 | 18 | ||
19 | /******************************************************************** | ||
20 | EnvExpandEnvironmentStringsForUser - Wrapper for ::ExpandEnvironmentStringsForUser. | ||
21 | |||
22 | *******************************************************************/ | ||
23 | HRESULT DAPI EnvExpandEnvironmentStringsForUser( | ||
24 | __in_opt HANDLE hToken, | ||
25 | __in LPCWSTR wzSource, | ||
26 | __out LPWSTR* psczExpanded, | ||
27 | __out_opt SIZE_T* pcchExpanded | ||
28 | ); | ||
29 | |||
19 | #ifdef __cplusplus | 30 | #ifdef __cplusplus |
20 | } | 31 | } |
21 | #endif | 32 | #endif |
diff --git a/src/libs/dutil/WixToolset.DUtil/inc/pathutil.h b/src/libs/dutil/WixToolset.DUtil/inc/pathutil.h index 875cfafb..f36e6ebc 100644 --- a/src/libs/dutil/WixToolset.DUtil/inc/pathutil.h +++ b/src/libs/dutil/WixToolset.DUtil/inc/pathutil.h | |||
@@ -205,6 +205,15 @@ DAPI_(HRESULT) PathGetTempPath( | |||
205 | ); | 205 | ); |
206 | 206 | ||
207 | /******************************************************************* | 207 | /******************************************************************* |
208 | PathSystemWindowsSubdirectory - returns the path to the Windows folder | ||
209 | or a subdirectory of that folder that is backslash terminated. | ||
210 | *******************************************************************/ | ||
211 | DAPI_(HRESULT) PathSystemWindowsSubdirectory( | ||
212 | __in_z_opt LPCWSTR wzSubdirectory, | ||
213 | __out_z LPWSTR* psczFullPath | ||
214 | ); | ||
215 | |||
216 | /******************************************************************* | ||
208 | PathGetSystemTempPaths - returns the paths to system temp folders | 217 | PathGetSystemTempPaths - returns the paths to system temp folders |
209 | that are backslash terminated with higher preference first. | 218 | that are backslash terminated with higher preference first. |
210 | *******************************************************************/ | 219 | *******************************************************************/ |
diff --git a/src/libs/dutil/WixToolset.DUtil/inc/polcutil.h b/src/libs/dutil/WixToolset.DUtil/inc/polcutil.h index 13618043..7c873b80 100644 --- a/src/libs/dutil/WixToolset.DUtil/inc/polcutil.h +++ b/src/libs/dutil/WixToolset.DUtil/inc/polcutil.h | |||
@@ -34,6 +34,20 @@ HRESULT DAPI PolcReadString( | |||
34 | __deref_out_z LPWSTR* pscz | 34 | __deref_out_z LPWSTR* pscz |
35 | ); | 35 | ); |
36 | 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 | |||
37 | #ifdef __cplusplus | 51 | #ifdef __cplusplus |
38 | } | 52 | } |
39 | #endif | 53 | #endif |
diff --git a/src/libs/dutil/WixToolset.DUtil/inc/procutil.h b/src/libs/dutil/WixToolset.DUtil/inc/procutil.h index 4f49313b..d5ab9242 100644 --- a/src/libs/dutil/WixToolset.DUtil/inc/procutil.h +++ b/src/libs/dutil/WixToolset.DUtil/inc/procutil.h | |||
@@ -18,6 +18,16 @@ HRESULT DAPI ProcElevated( | |||
18 | __out BOOL* pfElevated | 18 | __out BOOL* pfElevated |
19 | ); | 19 | ); |
20 | 20 | ||
21 | HRESULT DAPI ProcSystem( | ||
22 | __in HANDLE hProcess, | ||
23 | __out BOOL* pfSystem | ||
24 | ); | ||
25 | |||
26 | HRESULT DAPI ProcTokenUser( | ||
27 | __in HANDLE hProcess, | ||
28 | __out TOKEN_USER** ppTokenUser | ||
29 | ); | ||
30 | |||
21 | HRESULT DAPI ProcWow64( | 31 | HRESULT DAPI ProcWow64( |
22 | __in HANDLE hProcess, | 32 | __in HANDLE hProcess, |
23 | __out BOOL* pfWow64 | 33 | __out BOOL* pfWow64 |