954,504 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

adding a firewall exception using c++

i have a code that uploads a file to ftp. i want it to add an exception in firewall when it executes so that the firewall doesnot request the user for permissions. i know how to add a registry entry but i dont know how to add a firewall exception using c++. i expect help here. thanks.

cent91
Newbie Poster
17 posts since Oct 2009
Reputation Points: 10
Solved Threads: 0
 

Adding an exception to a firewall is an administrative task that will require users with UAC enabled to give permission to your program. There is no non malicious way to achieve this that I know of however there is a reference to the windows firewall API which will give you access to services already granted to the user by the firewall here...

http://msdn.microsoft.com/en-us/library/windows/desktop/aa366449(v=vs.85).aspx

Satyrn
Newbie Poster
21 posts since Aug 2011
Reputation Points: 10
Solved Threads: 2
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: