Sm_PolicyApi_AddAffiliateDomain()
The function creates an affiliate domain or updates an existing affiliate domain. Sets bIsAffiliate to TRUE.
casso10
The function creates an affiliate domain or updates an existing affiliate domain. Sets
bIsAffiliate
to TRUE.Type
Federation function
Syntax
int SM_EXTERN Sm_PolicyApi_AddAffiliateDomain (void*pSessionHandle,Sm_PolicyApi_AffiliateDomain_t*pstructAffiliateDomain,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. |
pstructAffiliate
Domain
| I | A pointer to a completely filled-in affiliate domain structure. |
bUpdate
| I | A Boolean flag to indicate that if an existing object is found, it should be updated. |
Returns
- Sm_PolicyApi_SuccessThe affiliate domain was created successfully
- Sm_PolicyApi_FailureThe affiliate domain was not created successfully
- Sm_PolicyApi_InvalidHandleNo valid initialization before this call
- Sm_PolicyApi_NoSessionNo valid administrator session
- Sm_PolicyApi_NoPrivilegeThe administrator does not have the permission to create an affiliate domain
- Sm_PolicyApi_DomainNotFoundThe affiliate domain OID was not found during an update
- Sm_PolicyApi_DomainNotAffiliateThe domain is not an affiliate domain