aboutsummaryrefslogtreecommitdiff
path: root/src/dutil/inc/apputil.h
blob: 1a1e14f7dc2c431bd09bc40706c8b6f1bd172135 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#pragma once
// 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.


#ifdef __cplusplus
extern "C" {
#endif

// functions

/********************************************************************
AppFreeCommandLineArgs - frees argv from AppParseCommandLine.

********************************************************************/
void DAPI AppFreeCommandLineArgs(
    __in LPWSTR* argv
    );

void DAPI AppInitialize(
    __in_ecount(cSafelyLoadSystemDlls) LPCWSTR rgsczSafelyLoadSystemDlls[],
    __in DWORD cSafelyLoadSystemDlls
    );

/********************************************************************
AppInitializeUnsafe - initializes without the full standard safety
                      precautions for an application.

********************************************************************/
void DAPI AppInitializeUnsafe();

/********************************************************************
AppParseCommandLine - parses the command line using CommandLineToArgvW.
                      The caller must free the value of pArgv on success
                      by calling AppFreeCommandLineArgs.

********************************************************************/
DAPI_(HRESULT) AppParseCommandLine(
    __in LPCWSTR wzCommandLine,
    __in int* argc,
    __in LPWSTR** pArgv
    );

#ifdef __cplusplus
}
#endif