Voice API for Windows Operating Systems Library Reference — November 2003 77
return the device type — ATDX_DEVTYPE( )
!
!!
!Example
#include <stdio.h>
#include <srllib.h>
#include <dxxxlib.h>
main()
{
int bddev;
long devtype;
/* Open the board device */
if ((bddev = dx_open("dxxxB1",NULL)) == -1) {
/* Process error */
}
if((devtype = ATDX_DEVTYPE(bddev)) == AT_FAILURE) {
/* Process error */
}
if(devtype == DT_DXBD) {
printf("Device is a Board\n");
}
/* Continue processing */
.
.
}
!
!!
!See Also
None.