Sm_PolicyApi_ConvertFromLegacyAgent()

Converts a v4.x agent to a v5.x agent.
casso127
Converts a v4.x agent to a v5.x agent.
Calling this function is the equivalent of clearing the Support 4.x agents check box on the Agent Properties dialog box.
Type
Agent function, global scope.
Syntax
int SM_EXTERN Sm_PolicyApi_ConvertFromLegacyAgent (
void*pSessionHandle,
Sm_PolicyApi_Agent_t*pStructAgent
);
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.
pStructAgent
I
A pointer to a completely filled-in agent structure.
Returns
  • Sm_PolicyApi_Success. The agent was converted successfully.
  • Sm_PolicyApi_Failure. The agent conversion failed.
  • Sm_PolicyApi_InvalidProp. One or more properties defined in
    pStructAgent
    are invalid.
  • 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 modify an agent.