This command is used to determine if
a service port exists.
For more information on profiles see
“Firewall Profiles”.
mnFindServicePort can be used to determine the ID of a service port. This should be done only after confirming that it exists using this command.
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
1 if the service port exists.
0 if the service port does not exist.
-1 if an error occurred.
DBP
C++
.Net