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

  1. /* C K O T H R  --  Kermit thread management functions for OS/2 and NT systems */
  2.  
  3. /*
  4.   Author: Jeffrey E Altman (jaltman@secure-endpoints.com),
  5.             Secure Endpoints Inc., New York City.
  6.  
  7.   Copyright (C) 1996,2004, Trustees of Columbia University in the City of New
  8.   York.  The C-Kermit software may not be, in whole or in part, licensed or
  9.   sold for profit as a software product itself, nor may it be included in or
  10.   distributed with commercial products or otherwise distributed by commercial
  11.   concerns to their clients or customers without written permission of the
  12.   Office of Kermit Development and Distribution, Columbia University.  This
  13.   copyright notice must not be removed, altered, or obscured.
  14. */
  15.  
  16. #ifndef CKOTHR_H
  17. #define CKOTHR_H
  18. #ifdef NT
  19. #ifndef APIRET
  20. #define APIRET DWORD
  21. #endif /* APIRET */
  22. #ifndef SEM_INDEFINITE_WAIT
  23. #define SEM_INDEFINITE_WAIT INFINITE
  24. #endif /* SEM_INDEFINITE_WAIT */
  25. #ifndef DCWW_WAIT
  26. #define DCWW_WAIT -1
  27. #endif /* DCWW_WAIT */
  28. #ifndef ERROR_VIO_ROW
  29. #define ERROR_VIO_ROW 1
  30. #endif
  31. #ifndef ERROR_VIO_COL
  32. #define ERROR_VIO_COL 2
  33. #endif
  34. #ifndef CCHMAXPATH
  35. #define CCHMAXPATH _MAX_PATH
  36. #endif
  37. #ifndef TID
  38. #define TID HANDLE
  39. #endif
  40. #ifndef PIB
  41. #define PIB HANDLE
  42. #define PPIB HANDLE*
  43. #endif
  44. #ifndef TIB
  45. #define TIB HANDLE
  46. #define PTIB HANDLE*
  47. #endif
  48. #ifndef HVIO
  49. #define HVIO HANDLE
  50. #endif
  51. #ifndef HMTX
  52. #define HMTX HANDLE
  53. #endif
  54. #ifndef HAB
  55. #define HAB HANDLE
  56. #endif
  57. #ifndef HKBD
  58. #define HKBD HANDLE
  59. #endif
  60. #ifndef HDIR
  61. #define HDIR HANDLE
  62. #endif
  63. #endif /* NT */
  64.  
  65. #ifdef NT
  66. _PROTOTYP( TID  ckThreadBegin, ( void (*)(void*), unsigned long, void *, BOOL, HANDLE) ) ;
  67. #else
  68. _PROTOTYP( TID  ckThreadBegin, ( void (*)(void*), unsigned long, void *, BOOL, TID) ) ;
  69. #endif
  70. _PROTOTYP( BOOL ckThreadKill, ( TID ) ) ;
  71. _PROTOTYP( BOOL ckThreadCleanup, ( TID ) ) ;
  72. _PROTOTYP( VOID ckThreadEnd, ( void * ) ) ;
  73. _PROTOTYP( VOID ckThreadDie, ( void * ) ) ;
  74. #endif /* CKOTHR_H */
  75.