aboutsummaryrefslogtreecommitdiff
path: root/src/libs/dutil/WixToolset.DUtil/inc
diff options
context:
space:
mode:
Diffstat (limited to 'src/libs/dutil/WixToolset.DUtil/inc')
-rw-r--r--src/libs/dutil/WixToolset.DUtil/inc/apputil.h41
-rw-r--r--src/libs/dutil/WixToolset.DUtil/inc/pathutil.h10
2 files changed, 40 insertions, 11 deletions
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.
34 by calling AppFreeCommandLineArgs. 34 by calling AppFreeCommandLineArgs.
35 35
36********************************************************************/ 36********************************************************************/
37DAPI_(HRESULT) AppParseCommandLine( 37HRESULT DAPI AppParseCommandLine(
38 __in LPCWSTR wzCommandLine, 38 __in LPCWSTR wzCommandLine,
39 __in int* argc, 39 __in int* argc,
40 __in LPWSTR** pArgv 40 __in LPWSTR** pArgv
41 ); 41 );
42 42
43/*******************************************************************
44 AppAppendCommandLineArgument - appends a command line argument on to a
45 string such that ::CommandLineToArgv() will shred them correctly
46 (i.e. quote arguments with spaces in them).
47********************************************************************/
48HRESULT DAPI AppAppendCommandLineArgument(
49 __deref_inout_z LPWSTR* psczCommandLine,
50 __in_z LPCWSTR wzArgument
51 );
52
53HRESULT DAPIV AppAppendCommandLineArgumentFormatted(
54 __deref_inout_z LPWSTR* psczCommandLine,
55 __in __format_string LPCWSTR wzFormat,
56 ...
57 );
58
59HRESULT DAPI AppAppendCommandLineArgumentFormattedArgs(
60 __deref_inout_z LPWSTR* psczCommandLine,
61 __in __format_string LPCWSTR wzFormat,
62 __in va_list args
63 );
64
65/********************************************************************
66AppEscapeCommandLineArgumentFormatted - formats a string and then
67 escapes it such that ::CommandLineToArgv() will parse it back unaltered.
68
69********************************************************************/
70HRESULT DAPIV AppEscapeCommandLineArgumentFormatted(
71 __deref_inout_z LPWSTR* psczEscapedArgument,
72 __in __format_string LPCWSTR wzFormat,
73 ...
74 );
75
76HRESULT DAPI AppEscapeCommandLineArgumentFormattedArgs(
77 __deref_inout_z LPWSTR* psczEscapedArgument,
78 __in __format_string LPCWSTR wzFormat,
79 __in va_list args
80 );
81
43#ifdef __cplusplus 82#ifdef __cplusplus
44} 83}
45#endif 84#endif
diff --git a/src/libs/dutil/WixToolset.DUtil/inc/pathutil.h b/src/libs/dutil/WixToolset.DUtil/inc/pathutil.h
index 0ae9f437..00a468ce 100644
--- a/src/libs/dutil/WixToolset.DUtil/inc/pathutil.h
+++ b/src/libs/dutil/WixToolset.DUtil/inc/pathutil.h
@@ -14,16 +14,6 @@ typedef enum PATH_EXPAND
14 14
15 15
16/******************************************************************* 16/*******************************************************************
17 PathCommandLineAppend - appends a command line argument on to a
18 string such that ::CommandLineToArgv() will shred them correctly
19 (i.e. quote arguments with spaces in them).
20********************************************************************/
21DAPI_(HRESULT) PathCommandLineAppend(
22 __deref_inout_z LPWSTR* psczCommandLine,
23 __in_z LPCWSTR wzArgument
24 );
25
26/*******************************************************************
27 PathFile - returns a pointer to the file part of the path. 17 PathFile - returns a pointer to the file part of the path.
28********************************************************************/ 18********************************************************************/
29DAPI_(LPWSTR) PathFile( 19DAPI_(LPWSTR) PathFile(