FirewallSetInterface (Windows Embedded CE 6.0)
1/6/2010
This function specifies that traffic through a network interface should be filtered by the firewall.
Syntax
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 Value
Returns ERROR_SUCCESS if operation succeeds.
Requirements
Header | fwapi.h |
Windows Embedded CE | Windows CE .NET 4.2 and later |