INetFwPolicy2::LocalPolicyModifyState method
The LocalPolicyModifyState attribute determines if adding or setting a rule or group of rules will take effect in the current firewall profile.
Syntax
Parameters
- modifyState [out]
-
Indicates whether the local policy can be modified.
Return value
C++
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 |
|---|---|
|
The operation was aborted due to permissions issues. |
|
The method failed because a pointer was invalid. |
VB
Returns a numeric value which indicates whether the local policy can be modified.
The return value can be one of the following values.
| Return code | Description |
|---|---|
|
The state can be modified. |
|
The state can't be modified due to group policy override. |
|
The state can't be modified due to no exceptions being allowed. |
Requirements
|
Minimum supported client | Windows Vista [desktop apps only] |
|---|---|
|
Minimum supported server | Windows Server 2008 [desktop apps only] |
|
Header |
|
|
DLL |
|
See also
Send comments about this topic to Microsoft
Build date: 10/26/2012