diff options
Diffstat (limited to 'src/libs/dutil/WixToolset.DUtil/inc/apputil.h')
-rw-r--r-- | src/libs/dutil/WixToolset.DUtil/inc/apputil.h | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/src/libs/dutil/WixToolset.DUtil/inc/apputil.h b/src/libs/dutil/WixToolset.DUtil/inc/apputil.h new file mode 100644 index 00000000..1a1e14f7 --- /dev/null +++ b/src/libs/dutil/WixToolset.DUtil/inc/apputil.h | |||
@@ -0,0 +1,45 @@ | |||
1 | #pragma once | ||
2 | // Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. | ||
3 | |||
4 | |||
5 | #ifdef __cplusplus | ||
6 | extern "C" { | ||
7 | #endif | ||
8 | |||
9 | // functions | ||
10 | |||
11 | /******************************************************************** | ||
12 | AppFreeCommandLineArgs - frees argv from AppParseCommandLine. | ||
13 | |||
14 | ********************************************************************/ | ||
15 | void DAPI AppFreeCommandLineArgs( | ||
16 | __in LPWSTR* argv | ||
17 | ); | ||
18 | |||
19 | void DAPI AppInitialize( | ||
20 | __in_ecount(cSafelyLoadSystemDlls) LPCWSTR rgsczSafelyLoadSystemDlls[], | ||
21 | __in DWORD cSafelyLoadSystemDlls | ||
22 | ); | ||
23 | |||
24 | /******************************************************************** | ||
25 | AppInitializeUnsafe - initializes without the full standard safety | ||
26 | precautions for an application. | ||
27 | |||
28 | ********************************************************************/ | ||
29 | void DAPI AppInitializeUnsafe(); | ||
30 | |||
31 | /******************************************************************** | ||
32 | AppParseCommandLine - parses the command line using CommandLineToArgvW. | ||
33 | The caller must free the value of pArgv on success | ||
34 | by calling AppFreeCommandLineArgs. | ||
35 | |||
36 | ********************************************************************/ | ||
37 | DAPI_(HRESULT) AppParseCommandLine( | ||
38 | __in LPCWSTR wzCommandLine, | ||
39 | __in int* argc, | ||
40 | __in LPWSTR** pArgv | ||
41 | ); | ||
42 | |||
43 | #ifdef __cplusplus | ||
44 | } | ||
45 | #endif | ||