Sm_PolicyApi_FlushRealm()

Flushes the specified realm identified by pszRealmOid from a resource cache.
casso10
Flushes the specified realm identified by
pszRealmOid
from a resource cache.
Type
Utility function.
Syntax
int SM_EXTERN Sm_PolicyApi_FlushRealm (
void*pSessionHandle,
const char*pszRealmOid
);
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.
pszRealmOid
I
A null-terminated string containing the object identifier of a realm.
Returns
  • Sm_PolicyApi_Success. The flush operation was successful.
  • Sm_PolicyApi_Failure. The flush operation was not successful.
  • Sm_PolicyApi_NoSession. There is no valid administrator session.
  • Sm_PolicyApi_InvalidHandle. There was no valid initialization prior to this call.
  • Sm_PolicyApi_NoPrivilege. The administrator does not have the privilege to flush a realm.
  • Sm_PolicyApi_InvalidOid. The realm OID was not found.