(Page 14 of 23 in this chapter) Version
ctaCreateContext.
array.
list of resource numbers. If NULL, this
function returns the number of resources in
numresources.
system.
unsigned printResourceList (CTAHD ctahd)
{
DWORD error;
unsigned resindex;
unsigned numresources = 0;
unsigned *resourcelist = NULL;
// First call just retrieves the number of conferencing resource
error= cnfGetResourceList(ctahd, 0, NULL, &numresources);
if (error != SUCCESS)
{
printf("Error when retrieving resource list :%d", error);
}
if (numresources)
{
if (resourcelist = malloc(numresources * sizeof(unsigned)))
{
// This call retrieves the whole list of conferencing resource
error= cnfGetResourceList(ctahd, numresources, resourcelist,
&numresources);
if (error != SUCCESS)
{
printf("Error when retrieving resource list :%d", error);
}
for (resindex = 0; resindex < numresources; resindex++)
printf("Conferencing resource %d exists",
resourcelist[resindex]);
free(resourcelist);
}
}
else
printf("No Conferencing resource detected using ctahd %x",
ctahd);
return (numresources);
}
(Page 14 of 23 in this chapter) Version