diff options
author | Sean Hall <r.sean.hall@gmail.com> | 2021-08-03 15:41:02 -0500 |
---|---|---|
committer | Sean Hall <r.sean.hall@gmail.com> | 2021-08-04 10:03:57 -0500 |
commit | ed57d171f6fb6bb4e180696cc12caa568599566a (patch) | |
tree | c1e6cbe61440d44f3f11160512e12042ce7ddd2a /src/libs/dutil/WixToolset.DUtil/inc/pathutil.h | |
parent | 5815688519a60e63e18c13dfe0908d76757cbc53 (diff) | |
download | wix-ed57d171f6fb6bb4e180696cc12caa568599566a.tar.gz wix-ed57d171f6fb6bb4e180696cc12caa568599566a.tar.bz2 wix-ed57d171f6fb6bb4e180696cc12caa568599566a.zip |
Get system TEMP path from the registry.
Also, correctly handle return codes from related path APIs.
Diffstat (limited to 'src/libs/dutil/WixToolset.DUtil/inc/pathutil.h')
-rw-r--r-- | src/libs/dutil/WixToolset.DUtil/inc/pathutil.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/libs/dutil/WixToolset.DUtil/inc/pathutil.h b/src/libs/dutil/WixToolset.DUtil/inc/pathutil.h index 579b8454..0ae9f437 100644 --- a/src/libs/dutil/WixToolset.DUtil/inc/pathutil.h +++ b/src/libs/dutil/WixToolset.DUtil/inc/pathutil.h | |||
@@ -151,6 +151,22 @@ DAPI_(HRESULT) PathCreateTempDirectory( | |||
151 | ); | 151 | ); |
152 | 152 | ||
153 | /******************************************************************* | 153 | /******************************************************************* |
154 | PathGetTempPath - returns the path to the temp folder | ||
155 | that is backslash terminated. | ||
156 | *******************************************************************/ | ||
157 | DAPI_(HRESULT) PathGetTempPath( | ||
158 | __out_z LPWSTR* psczTempPath | ||
159 | ); | ||
160 | |||
161 | /******************************************************************* | ||
162 | PathGetSystemTempPath - returns the path to the system temp folder | ||
163 | that is backslash terminated. | ||
164 | *******************************************************************/ | ||
165 | DAPI_(HRESULT) PathGetSystemTempPath( | ||
166 | __out_z LPWSTR* psczSystemTempPath | ||
167 | ); | ||
168 | |||
169 | /******************************************************************* | ||
154 | PathGetKnownFolder - returns the path to a well-known shell folder | 170 | PathGetKnownFolder - returns the path to a well-known shell folder |
155 | 171 | ||
156 | *******************************************************************/ | 172 | *******************************************************************/ |