mnIsPortAllowedA

This command is used to check whether using mnAddApplication with the specified information will be successful.

This command also returns restriction information about whether some local interfaces or remote addresses are blocked for this port. For example, if the port is restricted to the local subnet only.

To determine whether the port and protocol are allowed with any file name, IP version or local address use mnIsPortAllowedB.

Parameters

char * FileName: The image file name of the process listening on the network. It must be a fully-qualified path, but may contain environment variables.

int IPVersion: IP version of the traffic. 0 = V4, 1 = V6, 2 = Any.

long PortNumber: Local IP port number of the traffic.

char * LocalAddress: Either a dotted-decimal IPv4 address or an IPv6 hex address specifying the local address of the traffic. Typically, this is the address used with mnSetLocal.

int Protocol: IP protocol of the traffic. UDP = 17, TCP = 6.

Returns (Integer)

1 if the port is allowed and not restricted.

2 if the port is allowed and restricted.

3 if the port is not allowed and not restricted.

4 if the port is not allowed and restricted.

-1 if an error occurred.

Present in

DBP

C++

.Net




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