Sm_PolicyApi_AddAgentConfig()

The function creates or modifies an agent configuration object in the policy store.
sm1252sp1
The function creates or modifies an agent configuration object in the policy store.
Type
Agent configuration function, global scope.
Syntax
int SM_EXTERN Sm_PolicyApi_AddAgentConfig (
void*pSessionHandle,
Sm_PolicyApi_AgentConfig_t*pstructAgentConfig,
const bool bUpdate
);
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.
pstructAgentConfig
I
Address of a structure that defines the agent configuration object.
bUpdate
I
If true, the object is being updated.
 
Returns
  • Sm_PolicyApi_Success
    The operation was successful
  • Sm_PolicyApi_Failure
    Generalized failure
  • Sm_PolicyApi_InvalidOid
    The unique ID does not correspond to an agent configuration object
  • Sm_PolicyApi_NoPrivilege
    The caller does not have the permission to add or modify an agent configuration object
  • Sm_PolicyApi_InvalidHandle
    The session pointer is not valid
  • Sm_PolicyApi_NoSession
    The API user is not properly logged in