h324Initialize

Sets up the H.324M Middleware for use. This function must be called only once by the application and must not be called by more than one thread.

Prototype

DWORD h324Initialize ( char *logFileName)

Argument

Description

logFileName

Pointer to the H.324 log file name. If NULL, the default file name of h324.log is used.

Return values

Return value

Description

SUCCESS

 

H324ERR_ALREADY_INITIALIZED

h324Initialize was called.

H324ERR_LOG_FILE_OPEN_FAILED

Error opening the log file.

H324ERR_MUTEX_CREATE_FAILED

Failed to create mutex semaphore.

Events

None.

Example

ret = h324Initialize(gwParm.sH324LogFile);
if ( ret != SUCCESS)
{
    printf("h324Initialize . Return code is %x\n", ret);
    exit(1);
}