This deletes a port map that currently
exists; your application does not have to be the creator of the port
map.
There are two versions of this command;
the other version (mnDeletePortMapA) takes the parameter: PortMapID.
mnStartNAT must be used before this command.
char * Protocol: the protocol of the port map to be deleted.
long ExternalPort: the external port 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