mnGetServiceName

This command returns the name of the specified service. E.g. Remote Desktop.

For more information on profiles see “Firewall Profiles”.

C++ users: the memory for the returned string is managed by DarkNet and is guaranteed to remain unchanged and available until the next mnFinishFirewall or mnUpdateFirewall. This means that you do not need to deallocate the memory.

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.

Returns (const char *)

A filled string if no error occurs. This is the name of the specified service e.g. Remote Desktop.

An empty string if an error occurs.

Present in

DBP

C++

.Net




This page is in the following sections:
(2) Firewall Services
(1) Windows Firewall
(0) DarkNet Help