home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 11 Util
/
11-Util.zip
/
3COMM.ZIP
/
H.ZIP
/
REMUTIL.H
< prev
next >
Wrap
C/C++ Source or Header
|
1989-05-17
|
4KB
|
134 lines
/********************************************************************
** Microsoft OS/2 LAN Manager **
** Copyright(c) Microsoft Corp., 1987, 1988 **
********************************************************************/
/********************************************************************
* *
* About this file ... REMUTIL.H *
* *
* This file contains information about the NetRemote APIs. *
* *
* Function prototypes. *
* *
* Data structure templates. *
* *
* Definition of special values. *
* *
* *
* NOTE: You must include NETCONS.H before this file, since this *
* file depends on values defined in NETCONS.H. *
* *
********************************************************************/
/****************************************************************
* *
* Function prototypes - REMOTE *
* *
****************************************************************/
extern API_FUNCTION
NetRemoteCopy( const char far *, const char far *, const char far *,
const char far *, unsigned short, unsigned short,
char far *, unsigned short);
extern API_FUNCTION
NetRemoteMove( const char far *, const char far *, const char far *,
const char far *, unsigned short, unsigned short,
char far *, unsigned short);
extern API_FUNCTION
NetRemoteExec( char far *, char far *, unsigned, unsigned, const char far *,
const char far *, char far *, const char far *,
char far *, unsigned short);
extern API_FUNCTION
NetRemoteTOD ( const char far *, char far *, unsigned short );
/****************************************************************
* *
* Data structure templates - REMOTE *
* *
****************************************************************/
struct copy_info {
unsigned short ci_num_copied;
char ci_err_buf[1];
}; /* copy_info */
struct move_info {
unsigned short mi_num_moved;
char mi_err_buf[1];
}; /* move_info */
struct time_of_day_info {
unsigned long tod_elapsedt; /* time from 1-1-1970 in seconds */
unsigned long tod_msecs; /* milliseconds */
unsigned char tod_hours; /* hours */
unsigned char tod_mins; /* minutes */
unsigned char tod_secs; /* seconds */
unsigned char tod_hunds; /* hundredths */
unsigned short tod_timezone; /* time zone in minutes from GMT */
unsigned short tod_tinterval; /* timer interval (units = 0.0001 sec) */
unsigned char tod_day; /* day */
unsigned char tod_month; /* month */
unsigned short tod_year; /* year */
unsigned char tod_weekday; /* day of week */
}; /* time_of_day_info */
/****************************************************************
* *
* Special values and constants - REMOTE *
* *
****************************************************************/
/*
* Bit values for the "copyflags" parameter of NetRemoteCopy
* and the "moveflags" parameter of NetRemoteMove.
*
* bit 0: 1 - destination mode must be a file
* bit 1: 1 - destination mode must be a directory
*
* The following bits are defined for NetRemoteCopy ONLY.
*
* bit 2: 0 - destination copy mode is binary.
* 1 - destination copy mode is ASCII.
* bit 3: 0 - source copy mode is binary.
* 1 - source copy mode is ASCII.
* bit 4: 1 - verify all writes.
*/
#define MUST_BE_FILE 0x1
#define MUST_BE_DIR 0x2
#define ASCII_DEST 0x4
#define ASCII_SOURCE 0x8
#define VERIFY 0x10
/*
* Bit values for the "remexecflags" parameter of NetRemoteExec.
*
* bit 0: 0 - use msg mode pipe for std in
* 1 - use char mode pipe for std in
* bit 1: 0 - CWait for process tree before returning
* ExitCode to Ghost
* 1 - CWait for exec'ed process before returning
* ExitCode to Ghost
* bit 2: 0 - Map SIGINTR and SIGBREAK to SIGKILL when
* remoting signals
* 1 - Send signals as received
*/
#define REM_PIPE_MODE 1
#define REM_WAIT_MODE 2
#define REM_SIGL_MODE 4