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.

57 lines
1.9 KiB

  1. /***************************************************************************
  2. Name : BGT30.C
  3. Comment : Implements the IFAX Comm API
  4. Copyright (c) Microsoft Corp. 1991, 1992, 1993
  5. Revision Log
  6. Date Name Description
  7. -------- ----- ---------------------------------------------------------
  8. ***************************************************************************/
  9. /****************************************************
  10. // wParam==Comport
  11. # define IF_T30_INIT (IF_USER + 0x301)
  12. // wParam==TRUE/FALSE lParam==hProt
  13. # define IF_T30_ANSWER (IF_USER + 0x302)
  14. // wParam==aPhone lParam==hProt
  15. # define IF_T30_CALL (IF_USER + 0x303)
  16. // wParam==On/off
  17. # define IF_T30_LISTEN (IF_USER + 0x304)
  18. // wParam, lParam unused
  19. // # define IF_T30_ABORT (IF_USER + 0x305)
  20. // #define IF_T30_DATA (IF_USER + 0x306)
  21. ******************************************************/
  22. #ifdef TSK
  23. # define BGT30EXPORT __export WINAPI
  24. # define BGT30WINAPI WINAPI
  25. #else
  26. # define BGT30EXPORT
  27. # define BGT30WINAPI
  28. #endif
  29. void BGT30EXPORT T30Init(USHORT uComPort, USHORT uModemClass);
  30. typedef void (BGT30WINAPI *LPFN_T30INIT)(USHORT uComPort, USHORT uModemClass);
  31. void BGT30EXPORT T30DeInit(void);
  32. typedef void (BGT30WINAPI *LPFN_T30DEINIT)(void);
  33. USHORT BGT30EXPORT T30Answer(BOOL fImmediate, USHORT uLine, USHORT uModem);
  34. typedef USHORT (BGT30WINAPI *LPFN_T30ANSWER)(BOOL fImmediate, USHORT uLine, USHORT uModem);
  35. UWORD BGT30EXPORT T30Call(ATOM aPhone, USHORT uLine, USHORT uModem);
  36. typedef UWORD (BGT30WINAPI *LPFN_T30CALL)(ATOM aPhone, USHORT uLine, USHORT uModem);
  37. USHORT BGT30EXPORT T30Listen(USHORT uLevel, USHORT uLine);
  38. typedef USHORT (BGT30WINAPI *LPFN_T30LISTEN)(USHORT uLevel, USHORT uLine);
  39. #ifdef TSK
  40. void BGT30EXPORT SetT30Callbacks(HWND, LPFN_T30INIT, LPFN_T30DEINIT,
  41. LPFN_T30CALL, LPFN_T30ANSWER, LPFN_T30LISTEN);
  42. #endif
  43. #ifdef THREAD
  44. void BGT30EXPORT T30WaitUntilBGExit(void);
  45. #endif