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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
////////////////////////////////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2014 Microsoft Corporation. All Rights Reserved.
//
// Module Name:
// HelperFunctions_CommandLine.h
//
// Abstract:
// This module contains functions which assist in parsing information from the command prompt.
//
// Author:
// Dusty Harper (DHarper)
//
// Revision History:
//
// [ Month ][Day] [Year] - [Revision]-[ Comments ]
// May 01, 2010 - 1.0 - Creation
// December 13, 2013 - 1.1 - Add support for specifying a different sublayer
//
////////////////////////////////////////////////////////////////////////////////////////////////////
#ifndef HELPERFUNCTIONS_COMMAND_LINE_H
#define HELPERFUNCTIONS_COMMAND_LINE_H
VOID HlprCommandLineParseForScenarioRemoval(_In_reads_(stringCount) PCWSTR* ppCLPStrings,
_In_ UINT32 stringCount,
_Inout_ BOOLEAN* pRemoveScenario);
VOID HlprCommandLineParseForBootTime(_In_reads_(stringCount) PCWSTR* ppCLPStrings,
_In_ UINT32 stringCount,
_Inout_ FWPM_FILTER* pFilter);
VOID HlprCommandLineParseForCalloutUse(_In_reads_(stringCount) PCWSTR* ppCLPStrings,
_In_ UINT32 stringCount,
_Inout_ FWPM_FILTER* pFilter);
VOID HlprCommandLineParseForVolatility(_In_reads_(stringCount) PCWSTR* ppCLPStrings,
_In_ UINT32 stringCount,
_Inout_ FWPM_FILTER* pFilter);
_Success_(return == NO_ERROR)
UINT32 HlprCommandLineParseForLayerKey(_In_reads_(stringCount) PCWSTR* ppCLPStrings,
_In_ UINT32 stringCount,
_Inout_ FWPM_FILTER* pFilter);
_Success_(return == NO_ERROR)
UINT32 HlprCommandLineParseForSubLayerKey(_In_reads_(stringCount) PCWSTR* ppCLPStrings,
_In_ UINT32 stringCount,
_Inout_ FWPM_FILTER* pFilter);
_Success_(return == NO_ERROR)
UINT32 HlprCommandLineParseForFilterConditions(_In_reads_(stringCount) PCWSTR* ppCLPStrings,
_In_ UINT32 stringCount,
_Inout_ FWPM_FILTER* pFilter,
_In_ BOOLEAN forEnum = FALSE);
_Success_(return == NO_ERROR)
UINT32 HlprCommandLineParseForFilterInfo(_In_reads_(stringCount) PCWSTR* ppCLPStrings,
_In_ UINT32 stringCount,
_Inout_ FWPM_FILTER* pFilter,
_In_ BOOLEAN forEnum = FALSE);
#endif /// HELPERFUNCTIONS_COMMAND_LINE_H
|