RE: Windows Vista and NetSharingManager.EnumEveryConnection
- From: andersch <andersch@xxxxxxxxxxxxxxxxx>
- Date: Fri, 1 Jun 2007 04:30:00 -0700
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.
======================================================
- Follow-Ups:
- RE: Windows Vista and NetSharingManager.EnumEveryConnection
- From: Charles Wang[MSFT]
- RE: Windows Vista and NetSharingManager.EnumEveryConnection
- Prev by Date: Re: two internet addresses
- Next by Date: RE: Windows Vista and NetSharingManager.EnumEveryConnection
- Previous by thread: two internet addresses
- Next by thread: RE: Windows Vista and NetSharingManager.EnumEveryConnection
- Index(es):
Relevant Pages
|