home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Monster Media 1994 #1
/
monster.zip
/
monster
/
OS2
/
LNVREM.ZIP
/
LNREMSRC.EXE
/
LNH.H
< prev
next >
Wrap
Text File
|
1993-11-09
|
6KB
|
109 lines
/************************************************************************/
/* */
/* COPYRIGHT: (c) Copyright International Business Machines */
/* Corporation 1992 */
/* */
/* NOTICE: This program is supplied as an example only. No guarantees */
/* of any kind, either explicit or implicit, apply to this */
/* program. */
/* */
/* FILE: */
/* LNH.H */
/* */
/* VERSION: */
/* 1.1 */
/* */
/* DESCRIPTION: */
/* Common stuff for remote launch programs. */
/* */
/* AUTHOR: */
/* C.R. McKelley */
/* */
/* CHANGE HISTORY: */
/* 1.0 08/09/93 CRM Original */
/* */
/************************************************************************/
/* -------------------------------------------------------------------- */
/* CONSTANTS */
/* -------------------------------------------------------------------- */
/* Return codes */
#define LN_RC_SUCCESSFUL 0 /* Successful */
#define LN_RC_ERR_NOT_FOUND 4 /* Network name not found */
#define LN_RC_ERR_NO_AGENT 6 /* No system agent */
#define LN_RC_ERR_COMM 8 /* Communication error */
#define LN_RC_ERR_NO_CMD 10 /* No command string */
#define LN_RC_ERR_RCLI 12 /* RCLI or DosStart Session err */
#define LN_RC_ERR_BAD_CMD 255 /* No valid command selected */
#define MAXCMDS 50 /* Maximum num of remote cmds */
#define PINPUT_SIZE 150 /* Size of program input struct */
/* -------------------------------------------------------------------- */
/* TYPEDEFS AND STRUCTURES */
/* -------------------------------------------------------------------- */
typedef struct { /* Net ID and Sys ID structure */
PSZ NetID;
PSZ SysID;
} NIDSIDSTRUC;
typedef struct { /* Global command structure */
PSZ Cmd; /* Command pointer */
PSZ TimeOut; /* Time out value */
PSZ OutFile; /* Output file pointer */
PSZ InFile; /* Input file pointer */
BOOL32 Sticky; /* Persistence flag */
} GCMDSTRUC;
typedef GCMDSTRUC *PGCMDSTRUC; /* Pointer to type CMDSTRUC */
typedef struct { /* Local command structure */
PSZ MenuText;
PSZ Cmd;
PSZ TimeOut; /* Time out value */
PSZ OutFile; /* Output file pointer */
PSZ InFile; /* Input file pointer */
BOOL32 Sticky; /* Persistence flag */
} CMDSTRUC;
typedef CMDSTRUC *PCMDSTRUC; /* Pointer to type CMDSTRUC */
typedef struct { /* Node list structure */
USHORT NumCmds; /* Number of commands */
CMDSTRUC CmdStrucs[MAXCMDS]; /* Node identifiers */
} CMDLIST;
typedef CMDLIST *PCMDLIST; /* Pointer to type CMDLIST */
/* -------------------------------------------------------------------- */
/* FUNCTION PROTOTYPES */
/* -------------------------------------------------------------------- */
MRESULT EXPENTRY NoCmdProc(HWND hWndDlg,
USHORT message,
MPARAM mp1,
MPARAM mp2);
MRESULT EXPENTRY NoAgentProc(HWND hWndDlg,
USHORT message,
MPARAM mp1,
MPARAM mp2);
MRESULT EXPENTRY RCLIErrProc(HWND hWndDlg,
USHORT message,
MPARAM mp1,
MPARAM mp2);
MRESULT EXPENTRY CmdListProc(HWND hWndDlg,
USHORT message,
MPARAM mp1,
MPARAM mp2);
ULONG APIENTRY GetNetIDSysID(PSZ LongName,
NIDSIDSTRUC *pNIDSIDStruc);
ULONG APIENTRY GetCmdString(PGCMDSTRUC *pCmdStruct);
ULONG APIENTRY DNDecode(PVOID SysObjectDN,
NIDSIDSTRUC *pNIDSIDStruc);