FirewallSetInterface (Windows CE 5.0)
This function specifies that traffic through a network interface should be filtered by the firewall.
DWORD FirewallSetInterface( LPCWSTR pszInterfaceName, BOOL bFirewalled, BOOL bPersist);
Parameters
- pszInterfaceName
[in] Pointer to a null-terminated Unicode string that specifies the name of the network interface. For example, for the first PCI NE2000 adapter, type PCI\NE20001. - bFirewalled
[in] TRUE if the traffic through the interface should be filtered by the firewall, and FALSE otherwise. - bPersist
[in] TRUE to save the setting in the registry so that it preserved when a reboot occurs, and FALSE otherwise.
Return Values
Returns ERROR_SUCCESS if operation succeeds.
Requirements
OS Versions: Windows CE .NET 4.2 and later.
Header: Fwapi.h.
See Also
Send Feedback on this topic to the authors