mnDeleteServicePortA

This command deletes a port entry associated with a service.

For more information on profiles see “Firewall Profiles”.

You can use mnDeleteServicePortB to delete a port by its port ID.

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 port number of the port.

int Protocol: This is the protocol of the port.

17: UDP

6: TCP

Returns (Integer)

0 if no error occurred.

-1 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