Previous Topic: Related FunctionsNext Topic: EApiFetchObjectWithAncestry


Example

#include <eapidef.h>
EAPIRC rc = EAPI_SUCCESSFUL_RC;
OBJID nInObjectId;
ENCYID nEncyId,
OBJID nOutObjectId;
nInObjectId = 74344L;
rc = EApiFetchObjectAncestryInfo(nInObjectId,
&nEncyId,
&nOutObjectId);
if ( rc != EAPI_SUCCESSFUL_RC )
printf("Error in EApiFetchObjectAncestryInfo\n");
else
{
printf("EncyId = %ld\n", nEncyId);
printf("Ancestor ObjectId = %ld\n", nOutObjectId);
}