Retrieves the local firewall policy.
This property is read-only.
Syntax (get)
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 code | Description |
- 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
Property LocalPolicy As INetFwPolicy
Property Value
The local firewall policy.
Requirements
| Minimum supported client | Windows Vista, Windows XP with SP2 |
| Minimum supported server | None supported |
| Header | Netfw.h |
| DLL | Wfapi.dll, Hnetcfg.dll on Windows XP with SP2 |
See Also
- INetFwMgr
- INetFwPolicy
Send comments about this topic to Microsoft
Build date: 1/14/2010