From ed57d171f6fb6bb4e180696cc12caa568599566a Mon Sep 17 00:00:00 2001 From: Sean Hall Date: Tue, 3 Aug 2021 15:41:02 -0500 Subject: Get system TEMP path from the registry. Also, correctly handle return codes from related path APIs. --- src/libs/dutil/WixToolset.DUtil/inc/pathutil.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/libs/dutil/WixToolset.DUtil/inc/pathutil.h') 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 @@ -150,6 +150,22 @@ DAPI_(HRESULT) PathCreateTempDirectory( __out LPWSTR* psczTempDirectory ); +/******************************************************************* + PathGetTempPath - returns the path to the temp folder + that is backslash terminated. +*******************************************************************/ +DAPI_(HRESULT) PathGetTempPath( + __out_z LPWSTR* psczTempPath + ); + +/******************************************************************* + PathGetSystemTempPath - returns the path to the system temp folder + that is backslash terminated. +*******************************************************************/ +DAPI_(HRESULT) PathGetSystemTempPath( + __out_z LPWSTR* psczSystemTempPath + ); + /******************************************************************* PathGetKnownFolder - returns the path to a well-known shell folder -- cgit v1.2.3-55-g6feb