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.

77 lines
3.2 KiB

  1. /***************************************************************************
  2. Name : CLASS1.H
  3. Comment : Main include file for Windows Comm Class-1 Modem driver
  4. Copyright (c) Microsoft Corp. 1991 1992 1993
  5. Revision Log
  6. Date Name Description
  7. -------- ----- ---------------------------------------------------------
  8. ***************************************************************************/
  9. /**---------------------- #define of sizes of things ---------------------
  10. Frames can be at most 2.55 secs (sent) or 3.45 secs (recvd) long, or
  11. 2.55 * 300/8 = 96 bytes and 132 bytes long respectively
  12. Dialstrings are limited to 60 bytes (arbitrarily)
  13. Commands (except dial) are never more than about 10-20 bytes long, so
  14. we use a buffer of 40 bytes. Replies are never big at all, but we
  15. might hold a frame in there, so keep it same size as a Framebuffer
  16. The Dial command is ATDT <string><CR>, so we use 60+10 bytes buffer
  17. ---------------------- #define of sizes of things ---------------------**/
  18. /**---------------------- #define of other things ---------------------
  19. FAX_CLASSn is used in Modem.FaxClass.
  20. CHECK_PATTERN is used in the Guard elements.
  21. ECM_FRAMESIZE in T30.C
  22. ---------------------- #define of other things ---------------------**/
  23. #define CR 0x0d
  24. #define LF 0x0a
  25. #define DLE 0x10 // DLE = ^P = 16d = 10h
  26. #define ETX 0x03
  27. extern BYTE bDLEETX[];
  28. extern BYTE bDLEETXOK[];
  29. #define EndMode(pTG) { pTG->Class1Modem.DriverMode = IDLE; \
  30. pTG->Class1Modem.ModemMode = COMMAND; \
  31. pTG->Class1Modem.CurMod = 0; }
  32. // from ddi.c
  33. void SendZeros1(PThrdGlbl pTG, USHORT uCount);
  34. BOOL iModemDrain(PThrdGlbl pTG);
  35. #define iModemNoPauseDialog(pTG, s, l, t, w) \
  36. iiModemDialog(pTG, s, l, t, FALSE, 1, FALSE, (CBPSTR)w, (CBPSTR)(NULL))
  37. #define iModemNoPauseDialog2(pTG, s, l, t, w1, w2) \
  38. iiModemDialog(pTG, s, l, t, FALSE, 1, FALSE, (CBPSTR)w1, (CBPSTR)w2, (CBPSTR)(NULL))
  39. #define iModemNoPauseDialog3(pTG, s, l, t, w1, w2, w3) \
  40. iiModemDialog(pTG, s, l, t, FALSE, 1, FALSE, (CBPSTR)w1, (CBPSTR)w2, (CBPSTR)w3, (CBPSTR)(NULL))
  41. #define iModemPauseDialog(pTG, s, l, t, w) \
  42. iiModemDialog(pTG, s, l, t, FALSE, 1, TRUE, (CBPSTR)w, (CBPSTR)(NULL))
  43. #define iModemResp2(pTG, t, w1, w2) \
  44. iiModemDialog(pTG, NULL, 0, t, FALSE, 1, FALSE, (CBPSTR)w1, (CBPSTR)w2, (CBPSTR)(NULL))
  45. #define iModemResp3(pTG, t, w1, w2, w3) \
  46. iiModemDialog(pTG, NULL, 0, t, FALSE, 1, FALSE, (CBPSTR)w1, (CBPSTR)w2, (CBPSTR)w3, (CBPSTR)(NULL))
  47. #define iModemResp4( pTG, t, w1, w2, w3, w4) \
  48. iiModemDialog(pTG, NULL, 0, t, FALSE, 1, FALSE, (CBPSTR)w1, (CBPSTR)w2, (CBPSTR)w3, (CBPSTR)w4, (CBPSTR)(NULL))