mnFindServicePort

This command is used to find the ID of a service port.

For more information on profiles see “Firewall Profiles”.

This command should not be used to determine if a service port exists because 0 is returned if a service port was not found, but 0 can also be a valid service port ID. Use mnServicePortExist instead.

Parameters

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

unsigned int ServiceID: This is the ID of the service that the command should use.

long PortNumber: This is the number of the port to find.

int Protocol: This is the protocol of the port to find.

17: UDP

6: TCP

Returns (Unsigned Integer)

Any number if no error occurred. This is the ID of the found service port.

0 if an error occurred.

Present in

DBP

C++

.Net




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