View Full Version : Internet Connection Sharing and Internet Connection Firewall question
Gary
January 10th 04, 02:15 AM
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/default.asp?url=/library/en-us/ics/ics/ics_icf_methods_that_provide_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
Rakesh Chanana [MSFT]
January 10th 04, 02:17 AM
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
--------------------
>> From: (Gary)
>> Newsgroups: microsoft.public.windowsxp.network_web
>> Subject: Internet Connection Sharing and Internet Connection Firewall
question
>> Date: 3 Nov 2003 15:32:37 -0800
>> Organization: http://groups.google.com
>>
>> 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/default.asp?url=/library/en-us/ics/ics/ics
_icf_methods_that_provide_notifications_to_the_use r_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
>>
Ken Wickes [MSFT]
January 10th 04, 02:19 AM
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]"" > wrote in message
...
> 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
>
>
> --------------------
>>> From: (Gary)
>>> Newsgroups: microsoft.public.windowsxp.network_web
>>> Subject: Internet Connection Sharing and Internet Connection Firewall
> question
>>> Date: 3 Nov 2003 15:32:37 -0800
>>> Organization: http://groups.google.com
>>>
>>> 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/default.asp?url=/library/en-us/ics/ics/ics
> _icf_methods_that_provide_notifications_to_the_use r_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
>>>
>
vBulletin® v3.6.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.