This deletes a port map that currently
exists; your application does not have to be the creator of the port
map.
Port map IDs range from 0 to 1 less than
the number of found port maps (returned by mnGetPortMapAmount).
There are two versions of this command;
the other version (mnDeletePortMapB) takes the parameters: Protocol
and ExternalPort.
mnStartNAT must be used before this command.
unsigned int PortMapID: the ID of the port map to be deleted.
bool Block: If set to true the command will block until the operation has completed.
When blocking:
0 if no error occurred
-1 if an error occurred
When not blocking:
Any number; this is the action to be used with mnPollUPNP
-1 if an error occurred
DBP
C++
.Net