Intel 05-1832-002 IP Phone User Manual


 
276 Voice API for Windows Operating Systems Library Reference — November 2003
dx_libinit( ) — initialize the voice library DLL
{
DWORD dwfilever, dwprodver;
/************************************************************************
* Initialize all the DLLs required. This will cause the DLLs to be
* loaded and entry points to be resolved. Entry points not resolved
* are set up to point to a default not implemented function in the
* 'C' library. If the DLL is not found all functions are resolved
* to not implemented.
************************************************************************/
if (sr_libinit(DLGC_MT) == -1) {
/* Must be already loaded, only reason if sr_libinit( ) was already called */
}
/* Call technology specific dx_libinit( ) functions to load voice DLL */
if (
dx_libinit
(DLGC_MT) == -1) {
/* Must be already loaded, only reason if dx_libinit( ) was already called */
}
/*********************************************************************************
* Voice library initialized so all other voice functions may be called
* as normal. Display the version number of the DLL
**********************************************************************************/
dx_GetDllVersion(&dwfilever, &dwprodver);
printf("File Version for voice DLL is %d.%02d\n",
HIWORD(dwfilever), LOWORD(dwfilever));
printf("Product Version for voice DLL is %d.%02d\n",
HIWORD(dwprodver), LOWORD(dwprodver));
/* Now open all the voice devices */
}
!
!!
! See Also
fx_libinit( ) in the Fax Software Reference
sr_libinit( ) in the Standard Runtime Library API Library Reference