This searches for a port map with the
specified protocol and external port, and returns its port map ID.
This should be used in conjunction with
mnPortMapExist to search for port maps. It is not advised to use mnFindPortMap
by itself because 0 is returned when a port map is not found but 0 can
also be the ID of a port map.
Port map IDs range from 0 to 1 less than
the number of found port maps (returned by mnGetPortMapAmount).
mnStartNAT must be used before this command.
char * Protocol: the protocol to search for.
long ExternalPort: the external port to search for.
The port map ID of the port map with
the specified protocol and external port.
0 if a port map with the specified protocol
and external port does not exist
0 if an error occurred
DBP
C++
.Net