Hi @TonyaSWelch!
I do have the very same question.
What I have found was this from WinDev Center (accessed 2020-04-22):
INetFwMgr::IsPortAllowed method
The IsPortAllowed method checks whether traffic will be allowed with the current firewall configuration for:
- A specific application.
- A specific port.
- A specific application on a specific port.
In its operation IsPortAllowed considers whether the firewall is currently enabled or disabled, whether the application is allowed in the current profile Exceptions List, whether the port
is allowed in the current profile Exceptions List, whether the file and print sharing option has been enabled, and whether the remote administration option has been enabled.
Because of the many factors in determining whether a port is allowed, the more specific information that is given via this method's input parameters, the more likely a clear result with meaningful restrictions will be returned.
allowed
Indicates by a value of VARIANT_TRUE or VARIANT_FALSE whether the port is allowed for at least some local interfaces and remote addresses.
restricted
Indicates by a value of VARIANT_TRUE or VARIANT_FALSE whether some local interfaces or remote addresses are blocked for this port. For example, if the port is restricted to the local subnet only.
Honestly, it does not help much, does it? It is still unclear to me!