Sm_PolicyApi_GetAffiliateDomain()
Gets an affiliate domain.
casso127
Gets an affiliate domain.
Type
Federation function
Syntax
int SM_EXTERN Sm_PolicyApi_GetAffiliateDomain (void*pSessionHandle,const char*pszAffiliateDomainOid,Sm_PolicyApi_AffiliateDomain_t**ppstructAffiliateDomain);
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. |
pszAffiliate
DomainOid
| I | A null-terminated string containing the object identifier of an existing affiliate domain. |
ppstruct
AffiliateDomain
| O | The address of a pointer to an affiliate domain structure. |
Returns
- Sm_PolicyApi_Success. The affiliate domain was retrieved successfully.
- Sm_PolicyApi_Failure. The affiliate domain was not retrieved 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 get an affiliate domain.
- Sm_PolicyApi_DomainNotFound. The affiliate domain OID was not found.
- Sm_PolicyApi_DomainNotAffiliate. The domain is not an affiliate domain.