Intel 05-1832-002 User Manual

Page of 564
Voice API for Windows Operating Systems Library Reference — November 2003
245
return assignment status of a shared resource — dx_GetRscStatus( )
dx_GetRscStatus( )
return assignment status of a shared resource
!
!
!
Description
The dx_GetRscStatus( ) function returns the assignment status of the shared resource for the 
specified channel. 
!
!
!
Cautions
None.
!
!
!
Errors
If the function returns -1, use the Standard Runtime Library (SRL) Standard Attribute function 
ATDV_LASTERR( ) to obtain the error code or use ATDV_ERRMSGP( ) to obtain a descriptive 
error message. One of the following error codes may be returned: 
EDX_BADPARM
Invalid parameter
Name:
int dx_GetRscStatus(chdev, rsctype, status)
Inputs:
int chdev
valid channel device handle
int rsctype
type of resource
int *status
pointer to assignment status 
Returns:
0 if success
-1 if failure
Includes:
srllib.h
dxxxlib.h
Category:
Configuration 
Mode:
synchronous 
Platform:
Springware
Parameter
Description
chdev 
specifies the valid channel device handle obtained when the channel was 
opened using 
rsctype 
specifies the type of shared resource:
RSC_FAX – shared fax resource (DSP-based Group 3 Fax, also known as 
Softfax) 
status 
points to the data that represents the assignment status of the resource:
RSC_ASSIGNED – a shared resource of the specified rsctype is assigned 
to the channel
RSC_NOTASSIGNED – a shared resource of the specified rsctype is not 
assigned to the channel