MiddleWares_YiHe 郑州颐和医院随访系统中间件

devlink.h 1.5KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. /********************************************************************/
  2. /* */
  3. /* C/C++ Header File (c) 2001 Avaya Global SME Solutions */
  4. /* */
  5. /* Contents:- */
  6. /* IP400 Office Dev link DLL provides an interface for managing */
  7. /* the IP400 Office product ranges from a Windows PC. */
  8. /********************************************************************/
  9. #ifndef _DEVLINK_H_
  10. #define _DEVLINK_H_
  11. typedef char TEXT;
  12. #define DEVLINK_SUCCESS 0
  13. #define DEVLINK_UNSPECIFIEDFAIL 1
  14. #define DEVLINK_LICENCENOTFOUND 2
  15. #define DEVLINK_COMMS_OPERATIONAL 0
  16. #define DEVLINK_COMMS_NORESPONSE 1
  17. #define DEVLINK_COMMS_REJECTED 2
  18. #define DEVLINK_COMMS_MISSEDPACKETS 3
  19. #ifdef __cplusplus
  20. extern "C"
  21. {
  22. #endif
  23. typedef void (CALLBACK * DLCALLLOGEVENT)(
  24. DWORD pbxh,
  25. TEXT * info
  26. );
  27. typedef void (CALLBACK * DLCOMMSEVENT)(
  28. DWORD pbxh,
  29. DWORD comms_state,
  30. DWORD parm1
  31. );
  32. LONG PASCAL DLOpen( DWORD pbxh
  33. , TEXT * pbx_address
  34. , TEXT * pbx_password
  35. , TEXT * reserved1
  36. , TEXT * reserved2
  37. , DLCOMMSEVENT cb
  38. );
  39. LONG PASCAL DLClose( DWORD pbxh );
  40. LONG PASCAL DLRegisterType2CallDeltas( DWORD pbxh, DLCALLLOGEVENT cb );
  41. #ifdef __cplusplus
  42. };
  43. #endif
  44. #endif // _DEVLINK_H_