(Page 3 of 23 in this chapter) Version
cnfCloseResource
Description
- Closes a conferencing resource handle.
Prototype
- DWORD cnfCloseResource ( CNFRESOURCEHD cnfresourcehd)
- cnfresourcehd Handle returned by cnfOpenResource.
Return Values
Events
Details
- This function closes the conferencing resource handle and destroys the cnfresourcehd. All existing conferences created using this cnfresourcehd are closed and destroyed. Wait for the CNFEVN_CLOSE_RESOURCE_DONE event before making any other calls to the NaturalConference API (especially important when using the Server mode of CT Access).
- Refer to Section 4.11 for more information on closing a resource.
See Also
- cnfGetResourceList
, cnfOpenResource
Example
extern CTAHD ctahd;
extern CTAQUEUEHD qhd;
extern CNFRESOURCEHD cnfresourcehd;
DWORD myCloseResource()
{
DWORD error;
CTA_EVENT evt;
char textbuf[80] = "";
error = cnfCloseResource(cnfresourcehd);
if (error != SUCCESS)
{
}
do
{
error = ctaWaitEvent( qhd, &evt, CTA_WAIT_FOREVER );
if(error != SUCCESS)
{
ctaGetText( ctahd, error, textbuf, sizeof( textbuf ));
printf( "\rError when calling ctaWaitEvent => %s\n", textbuf);
return(error);
}
} while ( evt.id != CNFEVN_CLOSE_RESOURCE_DONE );
(Page 3 of 23 in this chapter) Version
Want to send us feedback on our documentation? Email: Tech_Pubs@nmss.com
Copyright © 2000, Natural MicroSystems, Inc. All rights
reserved.