Click to Rate and Give Feedback
MSDN
MSDN Library
Networking
Windows Firewall
INetFwMgr
 INetFwMgr::LocalPolicy Property
Collapse All/Expand All Collapse All
INetFwMgr::LocalPolicy Property

Retrieves the local firewall policy.

This property is read-only.

Syntax (get)

C++
HRESULT get_LocalPolicy(
  [out]  INetFwPolicy **localPolicy
);

Parameters

localPolicy [out]

Local firewall policy based on INetFwPolicy.

Return Value

If the method succeeds, the return value is S_OK.

If the method fails, the return value is one of the following error codes.

Return codeDescription
E_ACCESSDENIED

The operation was aborted due to permissions issues.

E_OUTOFMEMORY

The method was unable to allocate required memory.

E_POINTER

The method failed due to an invalid pointer.

 

Syntax

VBScript
Property LocalPolicy As INetFwPolicy

Property Value

The local firewall policy.

Requirements

Minimum supported clientWindows Vista, Windows XP with SP2
Minimum supported serverNone supported
HeaderNetfw.h
DLLWfapi.dll, Hnetcfg.dll on Windows XP with SP2

See Also

INetFwMgr
INetFwPolicy

 

 

Send comments about this topic to Microsoft

Build date: 1/14/2010

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2010 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker