CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Threaded View

  1. #1
    Join Date
    Aug 2002
    Location
    India
    Posts
    62

    Question Urgent: changing firewall settings programmatically

    hi

    Wix XP SP2 brings new window's firewall and turns it on automatically. It blocks all the ports (which are not in common use like 80 and 21) and unsolicited traffic.

    My software is wokring on some different port and connets to the serveral computer over the local network as well to the web server. So if either the source machine or the destination machine is XP SP2 it prompts the user for allowing the traffic.

    I dont want this dialog box. In some cases software is required to do the work silently without any user interaction. But this XP SP2 denys to do so.

    In the tech articles its mentioned that one can add the name of the application or the port it is using in the exception list which firewall ingnores during the traffic control if the the "Dont' Allow Exception" on the General tab is not checked.

    So now I want to add my application name programmatically in this exception list. And when my work is over I would like to delete it from the list.

    Can some one tell me the APIs to achieve this?
    Last edited by vksanghavi; June 22nd, 2004 at 02:29 AM.
    Vaibhav...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured