Sm_PolicyApi_RenameObject()
Renames a domain or global object.
sm1252sp1
Renames a domain or global object.
This function requires the Object Identifier (OID) of the object to be renamed. You can retrieve the object identifier by performing the Get operation on the object.
Type
General object function.
Syntax
int SM_EXTERN Sm_PolicyApi_RenameObject (void*pSessionHandle,const char*pszOid,const char*pszNewName);
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. |
pszOid
| I | Object Identifier of the object to be renamed. |
pszNewName
| I | New name for the object. |
Returns
- Sm_PolicyApi_Success. The object was renamed successfully.
- Sm_PolicyApi_Failure. The object was not renamed successfully.
- Sm_PolicyApi_InvalidHandle. There was no valid initialization prior to this call.
- Sm_PolicyApi_NoSession. There is no valid administrator session.
- Sm_PolicyApi_NoPrivilege. The administrator does not have the privilege to rename an object.
- Sm_PolicyApi_InvalidOid. The OID was not found.