Internet Connection Sharing and Internet Connection Firewall question

G

Gary

Does anyone have the ICF API experiences?

We would like to use the ICF API in our program to automatically open
or close ports as required.

But when I use the INetSharingPortMapping::Enable() or
INetSharingPortMapping::Delete() function under my Windows XP OS, it
causes a notification to appear on my local computer, every time I
have to choose "YES" or "NO" in order to continue this program. It is
very inconvenient for us to use this ICF API under our program. We
would like this program to continue running without user interruption.

Further look into the MSDN document related the ICF under following
website:
http://msdn.microsoft.com/library/d...ovide_notifications_to_the_user_interface.asp

Only four ICS/ICF methods will cause the notification to the user
interface:
INetSharingConfiguration::DisableInternetFirewall
INetSharingConfiguration::DisableSharing
INetSharingConfiguration::EnableInternetFirewall
INetSharingConfiguration::EnableSharing

I wonder why INetSharingPortMapping::Enable() and
INetSharingPortMapping::Delete() cause the notification to the user
interface.

Is there any way we could use INetSharingPortMapping::Enable() and
INetSharingPortMapping::Delete() without notification showing up?

Thank you !
Gary
 
R

Rakesh Chanana [MSFT]

I'd suggest that you post to another newsgroup such as
microsoft.public.msdn.general which may be more appropriate for this type
of question.
----
Thanks,
Rakesh Chanana [MSFT]

When replying, please post to GROUP so that everyone can benefit from the
knowledge.

This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm


--------------------
 
K

Ken Wickes [MSFT]

The notification is so the user is notified that some program is
manipulating the firewall. It is irritating and while I can't promise
anything I expect it to be gone in the future.

--

Ken Wickes [MSFT]
This posting is provided "AS IS" with no warranties, and confers no rights.


"Rakesh Chanana [MSFT]" said:
I'd suggest that you post to another newsgroup such as
microsoft.public.msdn.general which may be more appropriate for this type
of question.
----
Thanks,
Rakesh Chanana [MSFT]

When replying, please post to GROUP so that everyone can benefit from the
knowledge.

This posting is provided "AS IS" with no warranties, and confers no
rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm


--------------------
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ics/ics/ics
_icf_methods_that_provide_notifications_to_the_user_interface.asp
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top