home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 11 Util / 11-Util.zip / 3COMM.ZIP / H.ZIP / REMUTIL.H < prev    next >
C/C++ Source or Header  |  1989-05-17  |  4KB  |  134 lines

  1. /********************************************************************
  2.  **                   Microsoft OS/2 LAN Manager                   **
  3.  **            Copyright(c) Microsoft Corp., 1987, 1988            **
  4.  ********************************************************************/
  5.  
  6. /********************************************************************
  7.  *                                    *
  8.  *  About this file ...  REMUTIL.H                    *
  9.  *                                    *
  10.  *  This file contains information about the NetRemote APIs.        *
  11.  *                                    *
  12.  *    Function prototypes.                        *
  13.  *                                    *
  14.  *    Data structure templates.                    *
  15.  *                                    *
  16.  *    Definition of special values.                    *
  17.  *                                    *
  18.  *                                    *
  19.  *  NOTE:  You must include NETCONS.H before this file, since this  *
  20.  *       file    depends on values defined in NETCONS.H.            *
  21.  *                                    *
  22.  ********************************************************************/
  23.  
  24.  
  25. /**************************************************************** 
  26.  *                                *
  27.  *          Function prototypes - REMOTE            *
  28.  *                                *
  29.  ****************************************************************/
  30.  
  31.  
  32. extern API_FUNCTION
  33.  NetRemoteCopy( const char far *, const char far *, const char far *, 
  34.         const char far *, unsigned short, unsigned short, 
  35.         char far *, unsigned short);
  36.  
  37. extern API_FUNCTION
  38.  NetRemoteMove( const char far *, const char far *, const char far *, 
  39.         const char far *, unsigned short, unsigned short, 
  40.         char far *, unsigned short);
  41.  
  42. extern API_FUNCTION
  43.  NetRemoteExec( char far *, char far *, unsigned, unsigned, const char far *, 
  44.         const char far *, char far *, const char far *, 
  45.         char far *, unsigned short);
  46.  
  47. extern API_FUNCTION
  48.  NetRemoteTOD ( const char far *, char far *, unsigned short );
  49.  
  50.  
  51.  
  52. /**************************************************************** 
  53.  *                                *
  54.  *          Data structure templates - REMOTE        *
  55.  *                                *
  56.  ****************************************************************/
  57.  
  58. struct copy_info {
  59.     unsigned short    ci_num_copied;
  60.     char         ci_err_buf[1];
  61. };    /* copy_info */
  62.  
  63.  
  64. struct move_info {
  65.     unsigned short    mi_num_moved;
  66.     char         mi_err_buf[1];
  67. };    /* move_info */
  68.  
  69. struct time_of_day_info {
  70.     unsigned long   tod_elapsedt;   /* time from 1-1-1970 in seconds */
  71.     unsigned long   tod_msecs;        /* milliseconds */
  72.     unsigned char   tod_hours;        /* hours */
  73.     unsigned char   tod_mins;        /* minutes */
  74.     unsigned char   tod_secs;        /* seconds */
  75.     unsigned char   tod_hunds;        /* hundredths */
  76.     unsigned short  tod_timezone;   /* time zone in minutes from GMT */
  77.     unsigned short  tod_tinterval;  /* timer interval (units = 0.0001 sec) */
  78.     unsigned char   tod_day;        /* day */
  79.     unsigned char   tod_month;        /* month */
  80.     unsigned short  tod_year;        /* year */
  81.     unsigned char   tod_weekday;    /* day of week */
  82. };    /* time_of_day_info */
  83.  
  84.  
  85.  
  86.  
  87. /**************************************************************** 
  88.  *                                *
  89.  *          Special values and constants - REMOTE        *
  90.  *                                *
  91.  ****************************************************************/
  92.  
  93. /*
  94.  *    Bit values for the "copyflags" parameter of NetRemoteCopy
  95.  *    and the "moveflags" parameter of NetRemoteMove.
  96.  *
  97.  *    bit 0:      1 - destination mode must be a file
  98.  *    bit 1:      1 - destination mode must be a directory
  99.  *
  100.  *    The following bits are defined for NetRemoteCopy ONLY.
  101.  *
  102.  *    bit 2:      0 - destination copy mode is binary.
  103.  *            1 - destination copy mode is ASCII.
  104.  *    bit 3:      0 - source copy mode is binary.
  105.  *            1 - source copy mode is ASCII.
  106.  *    bit 4:        1 - verify all writes.
  107.  */
  108.  
  109. #define MUST_BE_FILE    0x1
  110. #define MUST_BE_DIR    0x2
  111. #define ASCII_DEST    0x4
  112. #define ASCII_SOURCE    0x8
  113. #define VERIFY        0x10
  114.  
  115.  
  116. /*
  117.  *    Bit values for the "remexecflags" parameter of NetRemoteExec.
  118.  *
  119.  *    bit 0:      0 - use msg mode pipe for std in
  120.  *            1 - use char mode pipe for std in
  121.  *    bit 1:      0 - CWait for process tree before returning
  122.  *                ExitCode to Ghost
  123.  *            1 - CWait for exec'ed process before returning
  124.  *                ExitCode to Ghost
  125.  *    bit 2:      0 - Map SIGINTR and SIGBREAK to SIGKILL when
  126.  *                remoting signals
  127.  *            1 - Send signals as received
  128.  */
  129.  
  130. #define REM_PIPE_MODE 1
  131. #define REM_WAIT_MODE 2
  132. #define REM_SIGL_MODE 4
  133.  
  134.