home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / HLLAPIC.ZIP / HOST.H < prev    next >
C/C++ Source or Header  |  1991-08-13  |  2KB  |  42 lines

  1. /*  HOST.H
  2.     By Mark R. Schmidt
  3.  
  4.     Header file for implementing HLLAPI calls in MS C for OS/2.
  5.  
  6.     Written      06/05/1991
  7.     Last Modified 06/17/1991
  8.  
  9.     HOST.H, HOST.OBJ and HOST.DEF provide the following routine and
  10.     constants:
  11. */
  12.  
  13. #define HostConnect    1   /* Connect to presentation space        */
  14. #define HostDisconnect    2   /* Disconnect from presentation space   */
  15. #define SendKeyToHost    3   /* Send keystrokes to host            */
  16. #define WaitForHost    4   /* Wait for X to go off            */
  17. #define SearchHost    6   /* Search presentation space for string */
  18. #define SetHostSession    9   /* Set session parameters            */
  19.  
  20. #define SendFile    90  /* Send file to host            */
  21. #define ReceiveFile    91  /* Get file from host            */
  22.  
  23.  
  24. int host( int funcnum, char *infostr );
  25.  
  26. /*  This is and easy function that can be used to preform host task
  27.     that only need the function number (funcnum) and a data string
  28.     (infostr).    The function returns the HLLAPI error code.
  29. */
  30.  
  31.  
  32. extern void far pascal hllapi( int far *funcnum, char far *infostr,
  33.                    int far *infolen, int far *errorcode );
  34.  
  35. /*  This is the hard way to call HLLAPI where funcnum and infostr are
  36.     as above and infolen is the length of the infostr and errorcode will
  37.     return will the error.  Some uncommon functions need the errorcode to
  38.     be set before the function is called.  These would require the use of
  39.     this function.  The function returns void but errorcode is set to the
  40.     HLLAPI error code.
  41. */
  42.