What are the CAPI2.0 API Commands in CAPI20.DLL? |
The Common-ISDN API (CAPI) specificaton defines the following interface functions. Any driver that is CAPI 2.0 complient must implement all of the functions according to the spec.
| CAPI_INSTALLED | This command checks whether the CAPI 2.0 system is installed and operational on the machine. If CAPI is not installed an application should not attempt to use any CAPI services. |
| CAPI_REGISTER | This command registers an application with the CAPI system and initialises any internal structures. After this command an application can begin to use CAPI services such as dialling and listening for calls |
| CAPI_RELEASE | This command releases an application from the CAPI system and frees any internal structures allocated with the API_REGISTER command. |
| CAPI_PUT_MESSAGE | This command allows an application send a CAPI message to the CAPI system. The CAPI messages allow an application perform all the standard ISDN functions with an ISDN card. |
| CAPI_GET_MESSAGE | When the CAPI system wants to send a message to the application it places it in an internal queue. An application should call this command to check for any pending messages |
| CAPI_SET_SIGNAL | When a CAPI message becomes available from the CAPI system, a callback function can be called to notify the application. This command is used to specify what callback function (if any) should be used. |
| CAPI_GET_MANUFACTURER | This command is used to determine the manufacturer of the CAPI system. |
| CAPI_GET_VERSION | This command is used to determine the precise version of CAPI 2.0 supported by the CAPI system. |
| CAPI_GET_SERIAL_NUMBER | This command is used to determine the serial number (if available) of the ISDN card. |
| CAPI_GET_PROFILE | This command returns a number of characteristics about the ISDN card in use. |