home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Media Share 9
/
MEDIASHARE_09.ISO
/
clarion
/
share.zip
/
SHARE.DOC
< prev
next >
Wrap
Text File
|
1985-08-16
|
3KB
|
61 lines
SHARE - Shared DOS File LEM
for MS-DOS versions 3.0 and higher
----------------------------------
SHARE allows the user to share DOS files between applications and on
networks, which Clarion through batch 2007 does not support. The file
sharing supported is standard sharing via MS-DOS SHARE as provided in
MS-DOS versions 3.x and higher. Sharing under PC-MOS/386 is also
supported, and allows sharing of PC-MOS PIPE device files as well.
SHARE LEM was originally written in order to support this last
function for interprocess communications between concurrent PC-MOS
tasks written in Clarion. There is no inherent advantage to using
SHARE LEM over the standard Clarion DOS file handler with the
exception of the shared processing.
The functions supported are:
SHARE_OPEN - This function opens a specified file with specified
sharing, and returns a LONG integer File Handle for use by other SHARE
LEM routines. ERROR() and ERRORCODE() are also set.
SHARE_CLOSE - This procedure closes the shared file specified by the
File Handle. There is no return value. ERROR() and ERRORCODE() are
set.
SHARE_READ - This function reads up to a specified number of bytes
from the handle-specified shared file into the specified buffer. It
returns a LONG integer value of the number of bytes actually read.
ERROR() and ERRORCODE() may be set.
SHARE_WRITE - This function writes up to a specified number of bytes
from the handle-specified shared file into the specified buffer. It
returns a LONG integer value of the number of bytes actually written.
ERROR() and ERRORCODE() may be set.
The format of each instruction and the expected return values and
ERROR messages are found in the SHARE.ASM file.
The following files are provided in SHARE.ARC:
SHARE.ASM - Microsoft MASM format assembly language file.
SHARE.BIN - Assembled and linked version of SHARE.ASM.
SHAREMOD.CPY - SHARE Module Copy file for INCLUDE within the MAP
section of the main program.
SHARECDS.CPY - Shared file mnemonic codes, for use in setting up calls
to SHARE_OPEN and SHARE_CREATE.
SHARETST.CLA - A minor Clarion program demonstrating the SHARE LEM.
SHARE.DOC - This file.
This LEM is offered in the Public Domain "as is," with no
warranty or guarantee stated or implied as to its operation or
suitability in any specific application. In particular, neither
the author nor Clarion Software can be held responsible for any
monetary or other damages suffered by any user of this package.