home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
On Hand
/
On_Hand_From_Softbank_1994_Release_2_Disc_1_1994.iso
/
00091
/
s
/
rhllapi.h_
/
RHLLAPI.H
Wrap
Text File
|
1993-08-26
|
11KB
|
275 lines
/*-------------------------------------------------------------------*/
/* */
/* User Definitions for the RHLLAPI DLL */
/* */
/*-------------------------------------------------------------------*/
/* */
/* (c) Copyright 1983,93 by Relay Technology Inc. */
/* All rights reserved */
/* */
/*-------------------------------------------------------------------*/
/*-------------------------------------------------------------------*/
/* */
/* Module History */
/* */
/*-------------------------------------------------------------------*/
/* */
/* Latest Revision - */
/* */
/* $Revision: 5.3 $ */
/* */
/* Modification Log - */
/* */
/* F1911V60 Changed copyright */
/* by MAA on 08/26/93 */
/* F0147V51 Fix HLLAPI DLL interface. */
/* by REB on 09/13/91 */
/* M0146V51 Swaped RhllApi.h with RhllDef.h */
/* by REB on 09/12/91 */
/* */
/*-------------------------------------------------------------------*/
/* */
/* Notes - */
/* 1. Before calling any of the routines in this library */
/* the function HLL_Initialize must be called to */
/* establish communication with the Relay Application. */
/* before quitting the application which called */
/* HLL_Initialize the function HLL_Terminate must be called */
/* so that other applications will be allowed to communicate*/
/* with RELAY. */
/* */
/* 2. To use the functions in this library link your */
/* application with the library "rhllapi.lib". */
/* For example: */
/* link /NOP/NOD hlltest,,,rhllapi libw mlibcew, hlltest.Def*/
/* */
/*-------------------------------------------------------------------*/
/*-------------------------------------------------------------------*/
/* */
/* H L L _ I n i t i a l i z e */
/* */
/*-------------------------------------------------------------------*/
/* */
/* Procedure - */
/* */
WORD FAR PASCAL HLL_Initialize(HWND hOwner);
/* */
/* Function - */
/* */
/* Initialize HLLAPI interface for an application. */
/* */
/* Arguments - */
/* */
/* hOwner - Owner window handle, or NULL for none. */
/* */
/* Returned value - */
/* */
/* Session number if initialization has been completed, */
/* or 0 if initialization has failed. */
/* */
/* Notes - */
/* */
/* 1. This entry point performs HLLAPI initialization for */
/* an instance of an application. */
/* */
/* 2. The "session number" returned from this call is */
/* currently always 1: this value must be passed to */
/* other HLLAPI procedures to insure compatibility */
/* with future releases. */
/* */
/* 3. A hidden window of class "RHLLAPIWND" is created for */
/* use in DDE communications only. If desired, this */
/* window may be owned by a window belonging to the */
/* calling application. If an owner window handle is */
/* specified, the HLL_Terminate function will be */
/* performed automatically when that window is destroyed. */
/* */
/*-------------------------------------------------------------------*/
/*-------------------------------------------------------------------*/
/* */
/* H L L _ T e r m i n a t e */
/* */
/*-------------------------------------------------------------------*/
/* */
/* Procedure - */
/* */
int FAR PASCAL HLL_Terminate(WORD Sesno);
/* */
/* Function - */
/* */
/* Terminate HLLAPI interface for an application. */
/* */
/* Arguments - */
/* */
/* Sesno - Session number to be terminated. */
/* */
/* Returned value - */
/* */
/* = 0 if termination was successful, or */
/* > 0 if the interface is not active. */
/* */
/* Notes - */
/* */
/* 1. This entry point performs HLLAPI termination for */
/* an instance of an application. */
/* */
/* 2. This routine sends a WM_DDE_TERMINATE request to RELAY. */
/* A SendMessage call is used for this instead of the usual */
/* Message so that RELAY can process it immediately */
/* (the WM_DDE_TERMINATE reply from RELAY is ignored). */
/* */
/*-------------------------------------------------------------------*/
/*-------------------------------------------------------------------*/
/* */
/* H L L _ E x e c u t e */
/* */
/*-------------------------------------------------------------------*/
/* */
/* Procedure - */
/* */
int FAR PASCAL HLL_Execute(WORD Sesno,
int Function,
WORD wParam,
LPSTR lpStrParm,
int ParmLen);
/* */
/* Function - */
/* */
/* Start a HLLAPI function executing. */
/* */
/* Arguments - */
/* */
/* Sesno - Session number from HLL_Initialize call. */
/* Function - HLLAPI function number. */
/* wParam - Word parameter value for HLLAPI function. */
/* lpStrParam - Pointer to parameter string or buffer. */
/* ParmLen - Length of parameter string or buffer. */
/* */
/* Returned value - */
/* */
/* =0 if the function has been started OK, or */
/* >0 if the function cannot be started. */
/* */
/* Notes - */
/* */
/* 1. This entry point starts a HLLAPI function executing. */
/* A DDE message is sent to RELAY identifying the */
/* request and its parameters. */
/* */
/*-------------------------------------------------------------------*/
/*-------------------------------------------------------------------*/
/* */
/* H L L _ S t a t u s */
/* */
/*-------------------------------------------------------------------*/
/* */
/* Procedure - */
/* */
int FAR PASCAL HLL_Status(WORD Sesno,
LPINT lpHPBRETC,
LPWORD lpHPBLEN);
/* */
/* Function - */
/* */
/* Query the status of the last HLLAPI function executed. */
/* */
/* Arguments - */
/* */
/* Sesno - Session number from HLL_Initialize call. */
/* lpHPBRETC - Pointer to variable for HLLAPI return code */
/* (HPBRETC). */
/* lpHPBLEN - Pointer to variable for returned HPBLEN value. */
/* */
/* Returned value - */
/* */
/* 0 if the function is still executing, or */
/* 1 if the HLLAPI interface is not active, or */
/* 2 if the function has been completed. */
/* */
/* Notes - */
/* */
/* 1. This entry point returns the status of the last */
/* HLLAPI function executed. */
/* */
/*-------------------------------------------------------------------*/
/*-------------------------------------------------------------------*/
/* */
/* H L L _ W a i t */
/* */
/*-------------------------------------------------------------------*/
/* */
/* Procedure - */
/* */
int FAR PASCAL HLL_Wait(WORD Sesno,
LPINT lpHPBRETC,
LPWORD lpHPBLEN);
/* */
/* Function - */
/* */
/* Wait for a HLLAPI function to complete. */
/* */
/* Arguments - */
/* */
/* Sesno - Session number from HLL_Initialize call. */
/* lpHPBRETC - Pointer to variable for HLLAPI return code */
/* (HPBRETC). */
/* lpHPBLEN - Pointer to variable for returned HPBLEN value. */
/* */
/* Returned value - */
/* */
/* 0 if no function was active on entry here, or */
/* 1 if the HLLAPI interface is not active, or */
/* 2 if the function has been completed. */
/* */
/* Notes - */
/* */
/* 1. This entry point waits for the completion of a */
/* HLLAPI function request. */
/* */
/*-------------------------------------------------------------------*/
/*-------------------------------------------------------------------*/
/* */
/* H L L C */
/* */
/*-------------------------------------------------------------------*/
/* */
/* Procedure - */
/* */
int FAR PASCAL HLLC(LPINT lpFunction,
LPSTR lpStrParm,
LPINT lpParmLen,
LPWORD lpRetCode);
/* */
/* Function - */
/* */
/* Executes and waits for a HLLAPI function. */
/* */
/* Arguments - */
/* */
/* lpFunction - Pointer to HLLAPI function number. */
/* lpStrParam - Pointer to parameter string or buffer. */
/* lpParamLen - Pointer to length of parameter string or buffer*/
/* lpRetCode - Pointer to word return code (also used to pass a*/
/* word parameter to certain HLLAPI functions). */
/* */
/* Returned value - */
/* */
/* =0 if the function has been completed, or */
/* >0 if the function could not be started. */
/* */
/* Notes - */
/* */
/* 1. This entry point executes a HLLAPI function for session */
/* 1 and waits for its completion. */
/* */
/*-------------------------------------------------------------------*/
#define hllc HLLC