From cdba28de1ee229369b254c62bc58cf2f001899a3 Mon Sep 17 00:00:00 2001 From: Sean Hall Date: Tue, 3 Aug 2021 18:06:54 -0500 Subject: Add argument and policy setting to set Burn's base working directory. Fixes #5856 --- src/libs/dutil/WixToolset.DUtil/inc/apputil.h | 41 ++++++++++++++++++++++++++- 1 file changed, 40 insertions(+), 1 deletion(-) (limited to 'src/libs/dutil/WixToolset.DUtil/inc/apputil.h') diff --git a/src/libs/dutil/WixToolset.DUtil/inc/apputil.h b/src/libs/dutil/WixToolset.DUtil/inc/apputil.h index 1a1e14f7..11280102 100644 --- a/src/libs/dutil/WixToolset.DUtil/inc/apputil.h +++ b/src/libs/dutil/WixToolset.DUtil/inc/apputil.h @@ -34,12 +34,51 @@ AppParseCommandLine - parses the command line using CommandLineToArgvW. by calling AppFreeCommandLineArgs. ********************************************************************/ -DAPI_(HRESULT) AppParseCommandLine( +HRESULT DAPI AppParseCommandLine( __in LPCWSTR wzCommandLine, __in int* argc, __in LPWSTR** pArgv ); +/******************************************************************* + AppAppendCommandLineArgument - appends a command line argument on to a + string such that ::CommandLineToArgv() will shred them correctly + (i.e. quote arguments with spaces in them). +********************************************************************/ +HRESULT DAPI AppAppendCommandLineArgument( + __deref_inout_z LPWSTR* psczCommandLine, + __in_z LPCWSTR wzArgument + ); + +HRESULT DAPIV AppAppendCommandLineArgumentFormatted( + __deref_inout_z LPWSTR* psczCommandLine, + __in __format_string LPCWSTR wzFormat, + ... + ); + +HRESULT DAPI AppAppendCommandLineArgumentFormattedArgs( + __deref_inout_z LPWSTR* psczCommandLine, + __in __format_string LPCWSTR wzFormat, + __in va_list args + ); + +/******************************************************************** +AppEscapeCommandLineArgumentFormatted - formats a string and then + escapes it such that ::CommandLineToArgv() will parse it back unaltered. + +********************************************************************/ +HRESULT DAPIV AppEscapeCommandLineArgumentFormatted( + __deref_inout_z LPWSTR* psczEscapedArgument, + __in __format_string LPCWSTR wzFormat, + ... + ); + +HRESULT DAPI AppEscapeCommandLineArgumentFormattedArgs( + __deref_inout_z LPWSTR* psczEscapedArgument, + __in __format_string LPCWSTR wzFormat, + __in va_list args + ); + #ifdef __cplusplus } #endif -- cgit v1.2.3-55-g6feb