Leaked source code of windows server 2003
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.

129 lines
4.3 KiB

  1. /***************************************************************************
  2. Name :
  3. Comment :
  4. Revision Log
  5. Date Name Description
  6. -------- ----- ---------------------------------------------------------
  7. ??? arulm created
  8. 3/17/94 josephj Modified to handle AWG3 format, tapi and other device ids.
  9. Specifically, changed prototypes for FileT30Init,
  10. and FileT30ModemClasses, and added #defines for LINEID_*
  11. ***************************************************************************/
  12. #ifndef _FILET30_
  13. #define _FILET30_
  14. #include <ifaxos.h>
  15. #ifdef __cplusplus
  16. extern "C" {
  17. #endif
  18. // Types of LineId's
  19. #define LINEID_NONE (0x0)
  20. #define LINEID_COMM_PORTNUM (0x1)
  21. #define LINEID_COMM_HANDLE (0x2)
  22. #define LINEID_TAPI_DEVICEID (0x3)
  23. #define LINEID_TAPI_PERMANENT_DEVICEID (0x4)
  24. #define LINEID_NETFAX_DEVICE (0x10)
  25. # define FAXCLASS0 0x01
  26. # define FAXCLASS1 0x02
  27. # define FAXCLASS2 0x04
  28. # define FAXCLASS2_0 0x08 // Class4==0x10
  29. # define FAXCLASSMOUSE 0x40 // used if mouse found
  30. # define FAXCLASSCAS 0x80
  31. /**----- result values --------**/
  32. #define T30_OK 0
  33. #define T30_CALLDONE 1
  34. #define T30_CALLFAIL 2
  35. #define T30_BUSY 3
  36. #define T30_DIALFAIL 4
  37. #define T30_ANSWERFAIL 5
  38. #define T30_BADPARAM 6
  39. #define T30_WRONGTYPE 7
  40. #define T30_BETTERTYPE 8
  41. #define T30_NOMODEM 9
  42. #define T30_MISSING_DLLS 10
  43. #define T30_FILE_ERROR 11
  44. #define T30_RECVLEFT 12
  45. #define T30_INTERNAL_ERROR 13
  46. #define T30_ABORT 14
  47. #define T30_MODEMERROR 15
  48. #define T30_PORTBUSY 16
  49. #define T30_MODEMDEAD 17
  50. #define T30_GETCAPS_FAIL 18
  51. #define T30_NOSUPPORT 19
  52. /**----- ICommEnd values **/
  53. //--------------------- PROFILE ACCESS API's ---------------
  54. //
  55. // Following APIs provide access the fax-related information
  56. // stored in the the registry/ini-file.
  57. //
  58. // These API's should be used, rather than GetPrivateProfileString, etc...
  59. // On WIN32, these API's use the registry.
  60. //
  61. #define DEF_BASEKEY 1
  62. #define OEM_BASEKEY 2
  63. #define MAXFHBIDLEN 20
  64. #define szDIALTONETIMEOUT "DialToneWait"
  65. #define szANSWERTIMEOUT "HangupDelay"
  66. #define szDIALPAUSETIME "CommaDelay"
  67. #define szPULSEDIAL "PULSEDIAL"
  68. #define szDIALBLIND "BlindDial"
  69. #define szSPEAKERCONTROL "SpeakerMode"
  70. #define szSPEAKERVOLUME "Volume"
  71. #define szSPEAKERRING "RingAloud"
  72. #define szRINGSBEFOREANSWER "NumRings"
  73. #define szHIGHESTSENDSPEED "HighestSendSpeed"
  74. #define szLOWESTSENDSPEED "LowestSendSpeed"
  75. #define szENABLEV17SEND "EnableV17Send"
  76. #define szENABLEV17RECV "EnableV17Recv"
  77. #define szFIXMODEMCLASS "FixModemClass"
  78. #define szFIXSERIALSPEED "FixSerialSpeed"
  79. #define szCL1_NO_SYNC_IF_CMD "Cl1DontSync"
  80. #define szANSWERMODE "AnswerMode"
  81. #define szANS_GOCLASS_TWICE "AnsGoClassTwice"
  82. // Following use to specify model-specific behavour of CLASS2 Modems.
  83. // Used only in the class2 driver.
  84. #define szRECV_BOR "Cl2RecvBOR"
  85. #define szSEND_BOR "Cl2SendBOR"
  86. #define szDC2CHAR "Cl2DC2Char" // decimal ascii code.
  87. #define szIS_SIERRA "Cl2IsSr" // Sierra
  88. #define szIS_EXAR "Cl2IsEx" // Exar
  89. #define szSKIP_CTRL_Q "Cl2SkipCtrlQ" // Don't wait for ^Q to send
  90. #define szSW_BOR "Cl2SWBOR" // Implement +FBOR in software.
  91. #define CL2_DEFAULT_SETTING (0xff)
  92. // Cotrols whether we delete the modem section on installing modem...
  93. #define szDONT_PURGE "DontPurge"
  94. // Flags passed into ProfileOpen
  95. enum {
  96. fREG_READ = 0x1,
  97. fREG_WRITE = 0x1<<1,
  98. fREG_CREATE = 0x1<<2,
  99. fREG_VOLATILE = 0x1<<3
  100. };
  101. //--------------------- END PROFILE ACCESS API's ---------------
  102. #ifdef __cplusplus
  103. } // extern "C"
  104. #endif
  105. #endif // _FILET30_