index > Visual C# General > Please Help me in my application problem ?

Please Help me in my application problem ?

hello everybody in this forum.

iam currently implementing chat server application that must connect to the outside world from windows xp sp1 or sp2.

i tried to add my application ports programmatically to the internet connection firewall in windows xp sp1 but i couldn't cause i see the com file "hnetcfg.dll" in my windows operating system doesn't have "INetFwMgr" class that i must interlop to add the ports to the current running service of my application in the firewall.
i asked some friends and they told me it is impossible to add these ports cause your windows xp is SP1 not SP2 but what i see strange ???

is that hotmail messenger currently do that in my windows xp Sp1 ? when i try to connect to the internet it adds two UDP ports to the current dial up connection used to connect to the internet.
my question is :

i want to know how to add these ports in the windows xp if it is sp1 or sp2 as hotmail messenger does ?

is there any com file i can take from hotmail messenger for doing that ???
and if there is a com file for doing that ? if i interlopped that .Dll com into my application and i registered that com in the target pc that will run my application it will work or it needs msn messenger to be installed first (this is in case i took dll from the com files of the msn msgr).

how can i add these ports ? Please help me.




Human knowledge belongs to the world
Snouto
Take a look at this article at code project, it is in VC++.NET but you should be able to convert it or you can just use the controller: Windows XP SP2 Firewall Controller.

But normally this is not a thing you should do. A user should modify the firewall, not your application.
If you modify the settings, the user can allways refuse the modification. Remember that.



** Microsoft Community Moderator ** http://born2code.net **
PJ. van de Sande
reply 2

You can use google to search for other answers

 

More Articles

• Spell Checker using word.
• AccessViolationException
• How can I check if a specific registry entry exists?
• How to change the program icon?
• Aligning in RichTextBox
• Accessing FTP site from C#.net
• Listboxes - drag drop & reorder
• Retrieve info from SQL db
• HtmlElement Mouse Events
• Form Count
Bookmark and Share
Welcome to Bokebb   New Update  
 

New Articles

• Can we split any single column of DataGr
• Button_Click Event
• Deploy Windows Service
• Controlling a web browser control from a
• Access addin attributes and parameters:
• How to study Thread
• Retrieving the COM class factory for com
• about driver in computer
• Deployment Installer issue/problem
• Custom Attributes
• Unable to cast object of type System.Run
• what is DataBindings?
• Firewall
• SQL VB.NET 2003 code and C# code
• How do I execute a vbscript from a c# wi

Hot Articles

• Function Overloads for Optional Paramate
• Representing playing cards
• Handling exceptions with GetDirectories(
• Check and verify that a smtp-server is u
• Is it possible to use .NET controls to V
• How do you define a method with optional
• Attractive UI design
• Problem with variable
• Finding SSID using .NET2005
• Form2Form Problem in Visual c# Express
• how long a string can be??
• How do I refresh a directory in VC#?!
• Desktop Sidebar using C#??
• Parametrized Query in Visual C# 2005
• Using File.Copy() Correctly

Recommend Articles

• Thread cannot access static variable
• How to configure the window size for con
• What is the difference between debug mod
• MSBuild Config Error
• Adding images to a menustrip removes all
• VB6 to C# Conversion
• How do I tie a database into my C# appli
• How do you merge a ContextMenuStrip with
• print File
• IE Extensions
• Unable to insert new register in database
• Graphical Counter help, Novice Probably
• visio sdk custom properties
• eventhandler for datetime control
• 101 Samples problems with final release