mnIsPortAllowedB

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

Returned information indicates whether the port and protocol are allowed for any file name, IP version and local address.

To determine whether the port and protocol are allowed with a specific file name, IP version and local address use mnIsPortAllowedA.

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.

Parameters

long PortNumber: Local IP port number of the traffic.

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