# h324Delete

Releases any objects and memory associated with an instance of the H.324M Middleware. h324Delete must be called after H324EVN_STOP_DONE is received.

#### Prototype

DWORD h324Delete ( MSPHD msphd)

Argument | Description
msphd | MSPP handle associated with the MUX endpoint.

#### Return values

Return value | Description
SUCCESS |
CTAERR_NOT_FOUND | msphd was not found. Either h324Start was not called or h324Delete was called.
H324ERR_INTERNAL_ERROR | Internal error in the 3G-324M Middleware.
H324ERR_MUTEX_LOCK_FAILED | Internal error trying to lock mutex.
H324ERR_NOT_INITIALIZED | h324Initialize was not called first.

#### Events

None.

#### Example

case H324EVN_STOP_DONE:
printf("H324EVN_STOP_DONE received - Delete the H324M instance now\n");
ret = h324Delete(pCfg->MuxEp.hd);
if(ret != SUCCESS)
{
printf("h324Delete returned 0x%08x\n",ret);
return ret;
}