(Page 17 of 23 in this chapter) Version
cnfOpenResource
Description
- Opens a conferencing resource and obtains a conferencing resource handle.
Prototype
- DWORD cnfOpenResource ( CTAHD ctahd,
unsigned resourcenum,
CNFRESOURCEHD *cnfresourcehd)
- ctahd CTA context handle returned by ctaCreatecontext.
- resourcenum Conferencing resource number as declared in the NaturalConference configuration file (cnf.cfg).
- cnfresourcehd Pointer to a returned conferencing resource handle.
Return Values
Events
Details
- This function opens a new conferencing resource handle on the resource specified by resourcenum. Many handles can be opened on the same conferencing resource. This handle is required for every other function in NaturalConference. Wait for the CNFEVN_OPEN_RESOURCE_DONE event before using the cnfresourcehd (especially important when using the Server mode of CT Access).
- For more information, refer to Section 4.5, Creating Conferences.
See Also
- cnfCloseResource, cnfGetResourceInfo
Example
extern CTAHD ctahd;
extern CTAQUEUEHD qhd;
DWORD myOpenResource(unsigned resnum)
{
CNFRESOURCEHD newcnfresourcehd;
DWORD error;
CTA_EVENT evt;
char textbuf[80] = "";
error = cnfOpenResource (ctahd, resnum, &newcnfresourcehd);
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_OPEN_RESOURCE_DONE );
(Page 17 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.