Using Internet Connection Sharing and Internet Connection Firewall
[Internet Connection Firewall may be altered or unavailable in subsequent versions. Instead, use the Windows Firewall API.]
The following sections contain sample code that demonstrates how to use the Internet Connection Sharing and Internet Connection Firewall (ICS) API.
- Enabling Internet Connection Firewall (VBScript)
- Retrieving the Properties of a Connection (VBScript)
- Retrieving the Properties of a Connection (JScript)
- Adding and Removing Port Mappings (JScript)
- Adding and Removing Port Mappings (C++)