mnAddApplication

This command authorizes an application in the specified profile.

For more information on profiles see “Firewall Profiles”.

You can use mnDeleteApplicationA or mnDeleteApplicationB to delete authorized application entries.

Parameters

unsigned int ProfileID: This is the ID of the profile that the command should use.

char * Name: This is the name of the application.

char * FileName: This is the process image file name of the application.

int IPVersion: This is the IP version of the application.

0: V4

1: V6

2: V4 and V6

int Scope: This is the scope of the application.

0: All

1: Local subnet

2: Custom

char * RemoteAddresses: This is the remote addresses of the application.

The string consists of one or more comma-delimited tokens specifying the remote addresses from which the application can listen for traffic. The default value is "*".

Valid tokens:

- "*": any remote address; if present, it must be the only token.

- "LocalSubnet": not case-sensitive; specifying more than once has no effect.

- subnet: may be specified using either subnet mask or network prefix notation. If neither a subnet mask nor a network prefix is specified, the subnet mask defaults to 255.255.255.255. Examples - of valid subnets: 10.0.0.2/255.0.0.0 10.0.0.2/8 10.0.0.2

- Windows Vista: A valid IPv6 address.

- Windows Vista: An IPv4 address range in the format "start address - end address."

- Windows Vista: An IPv6 address range in the format "start address - end address."

bool Enabled: True is the authorized application entry is enabled, false if it is disabled.

Returns (Integer)

0 if no error occurred.

-1 if an error occurred.

Present in

DBP

C++

.Net




This page is in the following sections:
(2) Authorized Applications
(1) Windows Firewall
(0) DarkNet Help