home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 3 Comm / 03-Comm.zip / pmcom233.zip / CPMCOMM.H < prev    next >
Text File  |  1996-01-02  |  2KB  |  80 lines

  1. #ifndef USHORT
  2. #define USHORT unsigned short
  3. #endif
  4. #ifndef CHAR
  5. #define CHAR char
  6. #endif
  7. #ifndef HFILE
  8. #define HFILE unsigned short
  9. #endif
  10. #ifndef SHORT
  11. #define SHORT short
  12. #endif
  13. #ifndef UCHAR
  14. #define UCHAR unsigned char
  15. #endif
  16. #ifndef ULONG
  17. #define ULONG unsigned long
  18. #endif
  19. #ifndef VOID
  20. #define VOID void
  21. #endif
  22. #ifndef LONG
  23. #define LONG long
  24. #endif
  25. #ifndef PCHAR
  26. #define PCHAR char *
  27. #endif
  28.  
  29. extern USHORT port;
  30. extern CHAR portname[15];
  31. extern HFILE dde_output,dde_input;
  32. extern HFILE screen_handle;
  33.  
  34. SHORT setcom(char *baud,UCHAR parity,UCHAR data_bits,UCHAR stop_bits,SHORT port);
  35. USHORT init_lib(int argc,char **argv);
  36. USHORT put_s(char *str, HFILE handle);
  37. VOID sleep(ULONG seconds);
  38. USHORT wait_fore(USHORT argc, CHAR **argv, HFILE input, HFILE output);
  39. USHORT wait_for(USHORT argc, CHAR **argv, HFILE handle);
  40. SHORT search_mem(char *buffer,char *compare,USHORT num);
  41. CHAR get_ch(HFILE handle);
  42. USHORT dcd(HFILE port);
  43. USHORT char_avail(HFILE port);
  44. USHORT read_timeout(USHORT timeout, HFILE port);
  45. USHORT ring_detect(HFILE port);
  46. VOID drop_dtr(HFILE port);
  47. VOID raise_dtr(HFILE port);
  48. VOID beep(USHORT freq, USHORT duration);
  49. VOID sendb(LONG length, HFILE port);
  50. VOID os2_shell(HFILE input, HFILE output);
  51. USHORT xmodem_chk_receive(char *filename);
  52. USHORT xmodem_chk_send(char *filename);
  53. USHORT xmodem_receive(char *filename);
  54. USHORT xmodem_send(char *filename);
  55. USHORT xmodem_1k_receive(char *filename);
  56. USHORT xmodem_1k_send(char *filename);
  57. USHORT ymodem_send(USHORT num_files, CHAR **filearray);
  58. USHORT ymodem_receive(VOID);
  59. USHORT ymodemg_send(USHORT num_files, CHAR **filearray);
  60. USHORT ymodemg_receive(VOID);
  61. USHORT zmodem_send(USHORT num_files, CHAR **filearray);
  62. USHORT zmodem_receive(VOID);
  63. USHORT kermit_send(USHORT num_files, CHAR **filearray);
  64. USHORT kermit_receive(VOID);
  65. USHORT cisb_receive(char *filename);
  66. USHORT cisb_send(char *filename);
  67.  
  68. USHORT get_cursor_position(char *);
  69. VOID get_char_at(USHORT row,USHORT col,USHORT num,char *returnstr);
  70. USHORT capture_on(char *filename);
  71. USHORT capture_off(VOID);
  72. VOID set_download_path(char *path);
  73. VOID dial(char *name);
  74. VOID change_option(char *command);
  75. VOID get_dial_memo(char *str);
  76. VOID clipboard_paste(char *returnstr);
  77. VOID clipboard_copy(char *string);
  78. VOID clipboard_append(char *string);
  79.  
  80.