home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / k95source / ckowin.h < prev    next >
C/C++ Source or Header  |  2020-01-01  |  2KB  |  60 lines

  1. /* C K O W I N   --  Kermit GUI Windows support - Generic */
  2.  
  3. /*
  4.   Author: Jeffrey E Altman (jaltman@secure-endpoints.com)
  5.             Secure Endpoints Inc., New York City
  6.  
  7.   Copyright (C) 1985, 2004, Trustees of Columbia University in the City of New
  8.   York.
  9. */
  10.  
  11. extern int StartedFromDialer ;
  12. extern HWND hwndDialer ;
  13. extern LONG KermitDialerID ;
  14. #ifndef NT
  15. extern HAB hab;
  16. #endif
  17.  
  18. _PROTOTYP( void DialerSend, ( UINT, LONG ) ) ;
  19.  
  20. #define OPT_KERMIT_SUCCESS          12001
  21. #define OPT_KERMIT_FAILURE          12002
  22. #define OPT_KERMIT_CONNECT          12003
  23. #define OPT_KERMIT_HANGUP           12004
  24. #define OPT_KERMIT_HWND             12005
  25. #define OPT_KERMIT_EXIT             12006
  26. #define OPT_KERMIT_FG               12007
  27. #define OPT_KERMIT_PID              12008
  28. #define OPT_KERMIT_HWND2            12009
  29.  
  30. #define OPT_DIALER_CONNECT          13001
  31. #define OPT_DIALER_HWND             13002
  32. #define OPT_DIALER_EXIT             13003
  33.  
  34. #define OPT_TAPI_DIAL               14001
  35. #define OPT_TAPI_OPEN               14002
  36. #define OPT_TAPI_INIT               14003
  37. #define OPT_TAPI_SHUTDOWN           14004
  38.  
  39. #ifdef NT
  40. __inline void
  41. DialerSend(UINT message, LONG lparam)
  42. {
  43.     if ( StartedFromDialer )
  44.         SendMessage( hwndDialer, message, KermitDialerID, lparam ) ;
  45. }
  46. #else
  47. _Inline void
  48. DialerSend(UINT message, LONG lparam)
  49. {
  50.     debug(F111,"DialerSend","message",message);
  51.     debug(F111,"DialerSend","StartedFromDialer",StartedFromDialer);
  52.     if ( StartedFromDialer ) {
  53.         if (!WinPostMsg( hwndDialer, message,
  54.                     MPFROMLONG(KermitDialerID), MPFROMLONG(lparam) ))
  55.             debug(F111,"DialerSend failed","WinGetLastError()",WinGetLastError(hab));
  56.     }
  57. }
  58. #endif
  59.  
  60.