Sys_IsFirewallPortOpen
Description
Section titled “Description”Checks if a port is open in Windows Firewall for the current network profile.
Syntax
Section titled “Syntax”Sys_IsFirewallPortOpen(iPort) As Boolean
Parameters
Section titled “Parameters”iPort (Integer)
Section titled “iPort (Integer)”Port number
Return value
Section titled “Return value”Result will be stored in gbValue: True if the port is open, otherwise False. gbValue is also False if Windows Firewall is disabled.
Example
Section titled “Example”If bStatus Then bStatus = Sys_IsFirewallPortOpen(12946)If bStatus Then bStatus = Job_WriteLog("Custom", "gbValue: " & gbValue, bStatus, True)Related functions
Section titled “Related functions”Sys_IsFirewallInstalled Sys_IsFirewallEnabled Constants Package Property Variables