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.

93 lines
3.2 KiB

  1. /***************************************************************************
  2. Name : EFAXCB.H
  3. Comment :
  4. Copyright (c) Microsoft Corp. 1991, 1992, 1993
  5. Revision Log
  6. Date Name Description
  7. -------- ----- ---------------------------------------------------------
  8. ***************************************************************************/
  9. #include "protparm.h"
  10. #ifdef TSK
  11. # define TSKEXPORT _export WINAPI
  12. #else
  13. # define TSKEXPORT
  14. #endif
  15. /****************** begin prototypes from icomfile.c *****************/
  16. void ICommGotAnswer(PThrdGlbl pTG);
  17. void ICommSetSendMode(PThrdGlbl pTG, BOOL fECM, LONG sBufSize, USHORT uDataSize, BOOL fPad);
  18. void ICommSetRecvMode(PThrdGlbl pTG, BOOL fECM);
  19. BOOL ICommRecvCaps(PThrdGlbl pTG, LPBC lpBC);
  20. BOOL ICommRecvParams(PThrdGlbl pTG, LPBC lpBC);
  21. BOOL ICommRecvPollReq(PThrdGlbl pTG, LPBC lpBC);
  22. USHORT ICommNextSend(PThrdGlbl pTG);
  23. BOOL ICommSendPageAck(PThrdGlbl pTG, BOOL fAck);
  24. void ICommFailureCode(PThrdGlbl pTG, T30FAILURECODE uT30Fail);
  25. SWORD ICommGetSendBuf(PThrdGlbl pTG, LPBUFFER far* lplpbf, SLONG slOffset);
  26. BOOL ICommPutRecvBuf(PThrdGlbl pTG, LPBUFFER lpbf, SLONG slOffset);
  27. USHORT ICommGetRecvPageAck(PThrdGlbl pTG, BOOL fSleep);
  28. LPBC ICommGetBC(PThrdGlbl pTG, BCTYPE bctype, BOOL fSleep);
  29. void ICommGotDisconnect(PThrdGlbl pTG);
  30. #ifdef RICOHAI
  31. LPBYTE ICommGetOEMCaps(LPWORD);
  32. void ICommSetOEMCaps(LPBYTE lpb, WORD wLen);
  33. #endif
  34. #ifdef STATUS
  35. void ICommStatus(PThrdGlbl pTG, T30STATUS uT30Stat, USHORT uN1, USHORT uN2, USHORT uN3);
  36. #else
  37. # define ICommStatus(pTG, stat, uN1, uN2, uN3)
  38. #endif
  39. #ifdef FILET30
  40. void TSKEXPORT NotifyRing(PThrdGlbl pTG, BOOL fStart); // TRUE==start FALSE==stop
  41. void TSKEXPORT EndOfCall(PThrdGlbl pTG, UWORD uErr);
  42. ULONG TSKEXPORT StartAnswer(PThrdGlbl pTG, BOOL fBG, BOOL fImmediate);
  43. void ICommRawCaps(PThrdGlbl pTG, LPBYTE lpbCSI, LPBYTE lpbDIS, USHORT cbDIS,
  44. LPFR FAR * rglpfrNSF, USHORT wNumFrames);
  45. # define ICommRecvBufIsEmpty(pTG) (TRUE)
  46. #else
  47. void NotifyHandset(PThrdGlbl pTG, USHORT uOld, USHORT uNew);
  48. void NotifyRing(PThrdGlbl pTG, BOOL fStart);
  49. void EndOfCall(PThrdGlbl pTG, UWORD uErr);
  50. ULONG StartAnswer(PThrdGlbl pTG, BOOL fBG, BOOL fImmediate);
  51. BOOL ICommRecvBufIsEmpty(PThrdGlbl pTG);
  52. #endif //FILET30
  53. /***************** end of prototypes from icomfile.c *****************/
  54. // flags for PutRecvBuf
  55. #define RECV_STARTBLOCK -1
  56. #define RECV_STARTPAGE -2
  57. #define RECV_ENDPAGE -3
  58. #define RECV_ENDDOC -4
  59. #define RECV_SEQ -5
  60. #define RECV_SEQBAD -6
  61. #define RECV_FLUSH -7
  62. // flags for GetSendBuf
  63. #define SEND_STARTBLOCK -1
  64. #define SEND_STARTPAGE -2
  65. #define SEND_QUERYENDPAGE -3
  66. #define SEND_SEQ -4
  67. #define SEND_ERROR -1
  68. #define SEND_EOF 1
  69. #define SEND_OK 0
  70. #ifdef PSI
  71. void D_PSIFAXCheckMask(PThrdGlbl pTG, LPBYTE);
  72. #else
  73. # define D_PSIFAXCheckMask(pTG, arg)
  74. #endif