Sm_PolicyApi_AddGlobalResponse()

The function a new global response in the object store.
casso10
The function a new global response in the object store.
Type
Rule function, global scope.
Syntax
int SM_EXTERN Sm_PolicyApi_AddGlobalResponse (
void*pSessionHandle,
Sm_PolicyApi_Response_t*pStructResponse,
const boolbUpdate
);
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.
pStructResponse
I
A pointer to a filled response structure. The domain of the structure OID is ignored.
bUpdate
I
A flag to indicate that if an existing object is found, it should be updated.
 Returns
  • Sm_PolicyApi_Success
    The global response was created successfully
  • Sm_PolicyApi_Failure
    The global response was not created successfully
  • Sm_PolicyApi_InvalidHandle
    No valid initialization before this call
  • Sm_PolicyApi_NoSession
    No valid administrator session
  • Sm_PolicyApi_NoPrivilege
    The administrator does not have the permission to create a global response
  • Sm_PolicyApi_InvalidOid:
    A global response with a matching OID was not found during an update
  • Sm_PolicyApi_NotImplemented:
    The client who called this function initialized the API with a version less than SM_POLICY_API_VERSION_6_0