Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

72 lines
2.1 KiB

  1. /***************************************************************************
  2. Name : FCOMAPI.H
  3. Comment : Interface between FaxComm driver (entirely different for
  4. Windows and DOS) and everything else.
  5. Functions : (see Prototypes just below)
  6. Revision Log
  7. Copyright (c) Microsoft Corp. 1991, 1992, 1993
  8. Num Date Name Description
  9. --- -------- ---------- -----------------------------------------------
  10. ***************************************************************************/
  11. #include "timeouts.h"
  12. #define FILTER_DLEONLY 1
  13. #define FILTER_DLEZERO 0
  14. // following currently defined in FileT30.h
  15. #define LINEID_COMM_PORTNUM (0x1)
  16. #define LINEID_COMM_HANDLE (0x2)
  17. #define LINEID_TAPI_DEVICEID (0x3)
  18. #define LINEID_TAPI_PERMANENT_DEVICEID (0x4)
  19. /***************************************************************************
  20. Common Modem Operations
  21. ***************************************************************************/
  22. #ifdef CBZ
  23. typedef char __based(__segname("_CODE")) CBSZ[];
  24. typedef char __based(__segname("_CODE")) *CBPSTR;
  25. #else
  26. # ifdef LPZ
  27. typedef char far CBSZ[];
  28. typedef char far *CBPSTR;
  29. # else
  30. typedef char near CBSZ[];
  31. typedef char near *CBPSTR;
  32. # endif
  33. #endif
  34. // iModemInit takes following SPECIAL values for fInstall:
  35. #define fMDMINIT_NORMAL 0 // Normal Init -- includes ID Check.
  36. #define fMDMINIT_INSTALL 1 // Full install
  37. #define fMDMINIT_ANSWER 10 // Quick init before answering -- Skips ID check.
  38. // +++ Old code sometimes calls with fINSTALL=TRUE
  39. #if (fMDMINIT_INSTALL!=TRUE) || (fMDMINIT_ANSWER==TRUE) || (fMDMINIT_NORMAL!=0) || !fMDMINIT_ANSWER
  40. # error "fMDMINIT_* ERROR"
  41. #endif
  42. // iModemInit returns these
  43. #define INIT_OK 0
  44. #define INIT_INTERNAL_ERROR 13
  45. #define INIT_MODEMERROR 15
  46. #define INIT_PORTBUSY 16