
Description | Example | Cautions | See Also
Name: |
long sr_GetDllVersion(dwfileverp, dwprodverp) | |
Inputs: |
LPDWORD dwfileverp |
|
|
LPDWORD dwprodverp |
|
Returns: |
0 if success | |
|
-1 if failure | |
Includes: |
srllib.h | |
The sr_GetDllVersion( ) function returns the SRL DLL Version Number for the file and product.
This function has the following parameters:
Parameter |
Description |
dwfileverp |
Pointer to where to return file version information |
dwprodverp |
Pointer to where to return product version information |
/*$ sr_GetDllVersion( ) example $*/
#include <windows.h>
#include <srllib.h>
int InitDevices( )
{
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 */
}
/*********************************************************************************
/* SRL library initialized so all other SRL functions may be called as normal.
* Display the version number of the DLL
**********************************************************************************/
sr_GetDllVersion(&dwfilever, &dwprodver);
printf("File Version for SRL is %d.%02d\n",
HIWORD(dwfilever), LOWORD(dwfilever));
printf("Product Version for SRL is %d.%02d\n",
HIWORD(dwprodver), LOWORD(dwprodver));
/* Call technology specific xx_libinit( ) functions */
}
This function may only be used with the Cross-Compatibility Library.
Click here to contact Dialogic Customer Engineering
Copyright 2001, Dialogic Corporation