Sm_PolicyApi_DeletePolicy()
Deletes the policy identified by pszPolicyOid.
casso126
Deletes the policy identified by
pszPolicyOid
.Type
Policy function, domain scope.
Syntax
int SM_EXTERN Sm_PolicyApi_DeletePolicy (void*pSessionHandle, const char*pszPolicyOid);
Parameter | I/O | Description |
pSessionHandle
| I | A pointer to an internal Policy Management API data structure. The structure holds information about the administrator session and the client session. |
pszPolicyOid
| I | A null-terminated string containing the object identifier of an existing policy. |
Returns
- Sm_PolicyApi_Success. The policy was deleted successfully.
- Sm_PolicyApi_Failure. The policy was not deleted successfully.
- Sm_PolicyApi_InvalidHandle. There was no valid initialization prior to this call.
- Sm_PolicyApi_NoSession.l There is no valid administrator session.
- Sm_PolicyApi_NoPrivilege. The administrator does not have the privilege to delete a policy.
- Sm_PolicyApi_InvalidOid. The policy OID was not found.