# cnfCloseConference

Closes a conference.

#### Prototype

DWORD cnfCloseConference ( CNFRESOURCEHD cnfresourcehd, DWORD confid)

Argument | Description
cnfresourcehd | Handle returned by cnfOpenResource.
confid | Conference identifier returned by cnfCreateConference.

#### Return values

Return value | Description
SUCCESS |
CTAERR_INVALID_HANDLE | cnfresourcehd is not a valid conferencing resource handle.
CNFERR_BOARD_TIMEOUT | Board timed out while waiting for a response message.
CNFERR_INVALID_IDENTIFIER | confid is not a valid conference identifier.

#### Details

cnfCloseConference closes and deletes the conference specified by confid. The conference resource being used is released and made available for creating a new conference or resizing an existing conference.

Refer to Closing a conference for more information.

#### See also

cnfCreateConference

#### Example

extern CNFRESOURCEHD cnfresourcehd;
DWORD myCloseConference( DWORD confid)
{
DWORD error;
error = cnfCloseConference (cnfresourcehd, confid);
if (error != SUCCESS)
{
printf("Error when closing conference : %d", error);
return(error);
}
return(SUCCESS);
}