RE: Windows Vista and NetSharingManager.EnumEveryConnection

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Hi Charles

Windows Vista
***********
1. Control Panel > Security > Windows Firewall > Change Settings > Advanced
2. Disable the Firewall for a Network Connection in the listbox (for example
I've disabled the Firewall for a VPN connection).

Under General, the Windows Firewall is always On.


Windows XP SP2
************
1. Control Panel > Windows Firewall > Advanced
2. Disable the Firewall for a Network Connection in the listbox (for example
I've disabled the Firewall for a VPN connection).

Under General, the Windows Firewall is always On.


So the following code tell me always, that the Windows Firewall is enabled,
although I have the Fiewall disabled for a specific connection!

(http://www.codeproject.com/useritems/enable_disable_firewall.asp).
==================================================
Dim oINetFwMgr As NetFwTypeLib.INetFwMgr
Dim NetFwMgrObject As Object
Dim NetFwMgrType As Type

' Use the COM CLSID to get the associated .NET System.Type
NetFwMgrType = Type.GetTypeFromCLSID( _
New Guid("{304CE942-6E39-40D8-943A-B913C40C9CD4}"))

' Create an instance of the object
NetFwMgrObject = Activator.CreateInstance(NetFwMgrType)
oINetFwMgr = NetFwMgrObject

Dim oINetPolicy As NetFwTypeLib.INetFwPolicy
Dim oINetFwMgr As NetFwTypeLib.INetFwMgr
Dim fwProfile As NetFwTypeLib.INetFwProfile
fwProfile = oINetFwMgr.LocalPolicy.CurrentProfile
If(fwProfile.FirewalEnabled = True) then
........
Else
........
End If
====================================================

Thanks
andersch


"Charles Wang[MSFT]" wrote:

Hi andersch,
Just a kind reminder that I have not received your response. Please feel
free to post back at your convenience if you need further assistance.

Have a great day!

Best regards,
Charles Wang
Microsoft Online Community Support
=====================================================
Get notification to my posts through email? Please refer to:
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications

If you are using Outlook Express, please make sure you clear the check box
"Tools/Options/Read: Get 300 headers at a time" to see your reply promptly.


Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
======================================================
When responding to posts, please "Reply to Group" via
your newsreader so that others may learn and benefit
from this issue.
======================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
======================================================


.



Relevant Pages

  • Re: Serious Security Issue in Windows XP SP2s Firewall
    ... Subject: AW: Serious Security Issue in Windows XP SP2's Firewall ... If you update a WinXP SP-1 with enabled Internet ... Connection Firewall ...
    (Focus-Microsoft)
  • Re: [fw-wiz] stopping bots from phoning home
    ... well it works fine on my dsl connection! ... the majority of support calls that we receive are from the very ... > with the newer IM clients that do IRC. ... that having a firewall on the box that can see which program is trying to ...
    (Firewall-Wizards)
  • Re: Problem with EZ Antivirus
    ... >> internet access through your firewall. ... >> If you continue to receive the 'fatal error 3' message when trying to run ... >> Windows Firewall - Please be sure that the Windows XP firewall on your ... >> Please send the ezreport to support now. ...
    (alt.comp.anti-virus)
  • Blaster
    ... been using an internet connection firewall and have ... Then immediately turn-on Windows XP's built-in Firewall: ... ***Install a good firewall. ...
    (microsoft.public.security.virus)
  • Remote proceedure call terminated unexpectedly
    ... been using an internet connection firewall and have ... Then immediately turn-on Windows XP's built-in Firewall: ... ***Install a good firewall. ...
    (microsoft.public.windowsxp.general)