Enumerate Firewall Rules
Demonstrates Windows Firewall API's to enumerate firewall rules.
This sample is written in C++.
Building the sample
To build the sample using the command prompt:
- Open the Command Prompt window and navigate to the directory.
- Type msbuild EnumerateFirewallRules.
To build the sample using Visual Studio:
- Open Windows Explorer and navigate to the directory.
- Double-click the icon for the .sln (solution) file to open the file in Visual Studio.
- In the Build menu, select Build Solution. The application will be built in the default Debug directory.
Additional Build Steps:
- nmake
Running the sample
- Navigate to the directory that contains the new executable, using the command prompt or Windows Explorer.
- Type EnumerateFirewallRules.exe at the command line, or double-click its icon to launch it from Windows Explorer.