Reputation: 1915
Presently I am working in a Firewall project. First I downloaded a Firewall project from codeproject http://www.codeproject.com/KB/cpp/firewallpapi.aspx which was in C++. So I made a dll from that code and called it from C# project. Its working perfectly . But in Windows 7 it is not working. Can anyone give me any hint, why it is not working at windows 7.
Thanks.
Upvotes: 0
Views: 1330
Reputation: 1915
@Stuart Dunkeld I found a solution in Codeproject. http://www.codeproject.com/KB/IP/PacketFilter.aspx
Upvotes: 0
Reputation: 6627
It is possible to require elevation (User Account Control) but the app does not have a proper manifest so the elevation window never shos up.
Try Right Click -> Run As Admin and see if it works then.
Upvotes: 0
Reputation: 73303
Perhaps because the API has changed:
"By providing a simpler development platform, Windows Filtering Platform is designed to replace previous packet filtering technologies such as Transport Driver Interface (TDI) filters, Network Driver Interface Specification (NDIS) filters, and Winsock Layered Service Providers (LSP). Starting in Windows Server 2008 and Windows Vista, the firewall hook and the filter hook drivers are not available; applications that were using these drivers should use Windows Filtering Platform instead."
Upvotes: 3
Reputation:
Compile it for Windows 7 (32/ 64 Bit).
Check Event Viewer for any permission denied exception internally by windows.
Upvotes: 0