Internet Connection Sharing and Internet Connection Firewall question

Posted: 11-03-2003, 11:22 PM
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 needed.

But when i use the INetSharingPortMapping::Enable() or
INetSharingPortMapping:elete() 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/de..._interface.asp

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

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

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

Thank you !

Gary
Reply With Quote

Responses to "Internet Connection Sharing and Internet Connection Firewall question"

Slobodan Brcin
Guest
Posts: n/a
 
Re: Internet Connection Sharing and Internet Connection Firewall question
Posted: 11-04-2003, 12:32 AM
Gary,
Try setting:
HKLM\SYSTEM\ControlSet001\Control\Windows\NoIntera ctiveServices

You can use regedit.
Or in TD find component "Windows subsystem" and change value.

If this helps, then you can try to figure what service is causing this and
disable that service from interacting with user. If it is not service that
shows prompt than I don't know the way to disable it.

Regards,
Slobodan


"Gary" <glin@teknotelecom.com> wrote in message
news:43639f25.0311031522.4b1a667@posting.google.co m...
> 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 needed.
>
> But when i use the INetSharingPortMapping::Enable() or
> INetSharingPortMapping:elete() 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/de...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:isableInternetFirewall
> INetSharingConfiguration:isableSharing
> INetSharingConfiguration::EnableInternetFirewall
> INetSharingConfiguration::EnableSharing
>
> I wonder why INetSharingPortMapping::Enable() and
> INetSharingPortMapping:elete() cause the notification to the user
> interface.
>
> Is there any way we could use INetSharingPortMapping::Enable() and
> INetSharingPortMapping:elete() without notification showing up?
>
> Thank you !
>
> Gary

Reply With Quote
Gary
Guest
Posts: n/a
 
Re: Internet Connection Sharing and Internet Connection Firewall question
Posted: 11-04-2003, 04:04 PM
Slobodan:

Thank you for taking your time to answer my question.

I tried to set HKLM\SYSTEM\ControlSet001\Control\Windows\NoIntera ctiveServices
to become non-zero value.

Re-boot my windows xp machine. It does not work. The notification
message still showed up when I ran my executable program using ICF
API.

Here is the notification message:

Internet Sharing Configuration
C:\test.exe is attempting to change or view this computer's internet
Connection Protection settings. To give C:\test.exe permission to
edit these setting for as long as the program is open, click YES.

Yes No More Info

Thanks,
Gary


"Slobodan Brcin" <sbrcin@ptt.yu> wrote in message news:<#e0J6rmoDHA.2868@TK2MSFTNGP09.phx.gbl>...
> Gary,
> Try setting:
> HKLM\SYSTEM\ControlSet001\Control\Windows\NoIntera ctiveServices
>
> You can use regedit.
> Or in TD find component "Windows subsystem" and change value.
>
> If this helps, then you can try to figure what service is causing this and
> disable that service from interacting with user. If it is not service that
> shows prompt than I don't know the way to disable it.
>
> Regards,
> Slobodan
>
>
> "Gary" <glin@teknotelecom.com> wrote in message
> news:43639f25.0311031522.4b1a667@posting.google.co m...
> > 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 needed.
> >
> > But when i use the INetSharingPortMapping::Enable() or
> > INetSharingPortMapping:elete() 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/de...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:isableInternetFirewall
> > INetSharingConfiguration:isableSharing
> > INetSharingConfiguration::EnableInternetFirewall
> > INetSharingConfiguration::EnableSharing
> >
> > I wonder why INetSharingPortMapping::Enable() and
> > INetSharingPortMapping:elete() cause the notification to the user
> > interface.
> >
> > Is there any way we could use INetSharingPortMapping::Enable() and
> > INetSharingPortMapping:elete() without notification showing up?
> >
> > Thank you !
> >
> > Gary
Reply With Quote
Slobodan Brcin
Guest
Posts: n/a
 
Re: Internet Connection Sharing and Internet Connection Firewall question
Posted: 11-04-2003, 04:16 PM
Then it is not coming from service, but from API function inside of your
process.

This is documented feature (it is intended to serve as protection
mechanism), and I don't know the way to disable it.

You will have to find some work around this like stopping service, manually
populating registry, and then starting service.
Or something like this.


Regards,
Slobodan

"Gary" <glin@teknotelecom.com> wrote in message
news:43639f25.0311040804.2a861c66@posting.google.c om...
> Slobodan:
>
> Thank you for taking your time to answer my question.
>
> I tried to set
HKLM\SYSTEM\ControlSet001\Control\Windows\NoIntera ctiveServices
> to become non-zero value.
>
> Re-boot my windows xp machine. It does not work. The notification
> message still showed up when I ran my executable program using ICF
> API.
>
> Here is the notification message:
>
> Internet Sharing Configuration
> C:\test.exe is attempting to change or view this computer's internet
> Connection Protection settings. To give C:\test.exe permission to
> edit these setting for as long as the program is open, click YES.
>
> Yes No More Info
>
> Thanks,
> Gary
>
>
> "Slobodan Brcin" <sbrcin@ptt.yu> wrote in message
news:<#e0J6rmoDHA.2868@TK2MSFTNGP09.phx.gbl>...
> > Gary,
> > Try setting:
> > HKLM\SYSTEM\ControlSet001\Control\Windows\NoIntera ctiveServices
> >
> > You can use regedit.
> > Or in TD find component "Windows subsystem" and change value.
> >
> > If this helps, then you can try to figure what service is causing this
and
> > disable that service from interacting with user. If it is not service
that
> > shows prompt than I don't know the way to disable it.
> >
> > Regards,
> > Slobodan
> >
> >
> > "Gary" <glin@teknotelecom.com> wrote in message
> > news:43639f25.0311031522.4b1a667@posting.google.co m...
> > > 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 needed.
> > >
> > > But when i use the INetSharingPortMapping::Enable() or
> > > INetSharingPortMapping:elete() 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/de...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:isableInternetFirewall
> > > INetSharingConfiguration:isableSharing
> > > INetSharingConfiguration::EnableInternetFirewall
> > > INetSharingConfiguration::EnableSharing
> > >
> > > I wonder why INetSharingPortMapping::Enable() and
> > > INetSharingPortMapping:elete() cause the notification to the user
> > > interface.
> > >
> > > Is there any way we could use INetSharingPortMapping::Enable() and
> > > INetSharingPortMapping:elete() without notification showing up?
> > >
> > > Thank you !
> > >
> > > Gary

Reply With Quote
 
LinkBack Thread Tools Display Modes
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Internet Connection Sharing Petsen Windows Vista Networking & Sharing 6 12-25-2007 08:41 PM
Can't find Internet Connection Firewall Hiawatha Bray Windows XP Configuration & Management 9 06-28-2004 03:40 PM
Internet Connection Sharing Sean Davis Windows XP Network & Web 82 01-02-2004 08:50 PM
HELP ! my File sharing is working but the internet connection sharing isnt sam Windows XP Help & Support 2 10-16-2003 12:06 AM
Cannot enable Internet Connection Firewall Mark Jones Windows XP Security & Administration 3 07-02-2003 02:54 AM


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90