home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 29 Fixes_o
/
29-Fixes_o.zip
/
ehll16.zip
/
SP016.DOC
< prev
next >
Wrap
Text File
|
1992-12-15
|
6KB
|
146 lines
SP016 SelectPak December 15, 1992
===============================================================
README for EHLLAPI Virtual Device Driver Windows* support
===============================================================
Windows is a trademark of Microsoft Corporation.
SP016 introduces an enhanced virtual device driver (VHAPI) which
adds DOS and Windows* EHLLAPI support to the existing ES 1.0
support. It also includes a fix for (APAR JR06329).
This document contains the following information:
o Packaging
o Installation
o Usage
o Windows EHLLAPI function call syntax
o APAR fix information
o VHAPI system structure
Packaging
=========
SP016.DOC ;This document
SP016.CMD ;SP016 Install tool (REXX)
SP016.ZIP ;PKZIP file contents below:
VHAPI.OS2 ;The EHLLAPI virtual Device Driver
PCSHLL.DLL ;Windows EHLLAPI interface DLL
SYSLEVEL.ACS ;Syslevel Update file
** DOS Samples
SAMPLE\DOSSAMPL\PCSSAMP.EXE Sample DOS .EXE file
\HAPI_C.H Include File
** Windows Samples
SAMPLE\WINSAMPL\HLLTEST.EXE
\PCSSTUB.EXE
\PCSWSAPI.DLL
\HAPI_C.H Include file
Installation
============
Type SP016 at an OS/2 command prompt to invoke SP016.CMD. This
will prompt you through the installation process.
When you have completed, VHAPI.OS2 should have been placed in
the CMLIB and PCSHLL.DLL should have been placed in \OS2\DLL
Insure that the following statement exists in your CONFIG.SYS.
DEVICE=d:\CMLIB\VHAPI.OS2
Where d is the appropriate drive for your system.
The program VHAPINST has been provided with Extended Services
to automatically add (or delete) this statement in CONFIG.SYS
Simply type VHAPINST at an OS/2 command prompt to add the DEVICE
statement, or VHAPINST /D to delete it.
Note: You must restart your workstation after making changes to
CONFIG.SYS.
Usage
=====
To execute a Windows EHLLAPI application in the WIN-OS/2 session, PCSHLL.DLL
provided by this package is prerequisite. It needs to be called by a Windows
EHLLAPI application running in the WIN-OS/2 session.
VHAPI accepts upto 16 hllapi sessions at a time. If an EHLLAPI application
attempts to establish the 17th hllapi session, VHAPI returns the system error
code (rc=9).
Note that this DLL file is the interface module between a Windows EHLLAPI
application and the OS/2 Communications Manager. If running in the pure
Windows environment, use the DLL path indicating where the Personal
Communications/3270 has been installed.
Windows EHLLAPI function call syntax
====================================
PCSHLL.DLL only accepts the same syntax as Personal Communications/3270
Version 2.0 provides, though the Version 3.0 offers the additional syntax for
EHLLAPI function call.
void FAR PASCAL hllapi(LPINT, LPSTR, LPINT, LPINT); /*import hllapi*/
hllapi ((LPINT) &iHLLAPIFunction, /*pointer to EHLLAPI function number */
(LPSTR) zDataString, /*pointer to Data String */
(LPINT) &iStringLength, /*pointer to Data String length */
(LPINT) &iReturnCode );/*pointer to retrun code */
APAR fix
========
APAR#: JR06329
SUMMARY: Using VHAPI supplied with ES 1.0, NOEAB parameter on the
Copy_PS_To_String does not function.
VHAPI system structure
======================
The next illustrates the VHAPI system structure.
VDM_1 (WIN-OS/2 Desktop) VDM_2(WIN-OS/2 Window) VDM_3(DOS Window)
┌───────────────────────────┐ ┌─────────────────────┐ ┌─────────────────┐
│ ┌──────────┐┌───────────┐ │ │ ┌─────────┐ │ │ ┌─────────┐ │
│ │ Windows ││Windows │ │ │ │ Windows │ │ │ │ DOS │ │
│ │ EHLLAPI ││EHLLAPI │ │ │ │ EHLLAPI │ │ │ │ EHLLAPI │ │
│ │ appl. [1]││appl.[2] │ │ │ │ appl.[3]│ │ │ │ appl.[4]│ │
│ └──────────┘└───────────┘ │ │ └─────────┘ │ │ └─┬──────┬┘ │
│ ┌───────────────────────┐ │ │ ┌───────────┐ │ │ │ │ │
│ │ PCSHLL.DLL │ │ │ │ PCSHLL.DLL│ │ │ │ │ │
│ └───────┬───────┬───────┘ │ │ └──┬──────┬─┘ │ │ │ │ │
└─────────┼───────┼─────────┘ └───────┼──────┼──────┘ └─────┼──────┼────┘
│ │ │ │ │ │
INT 7Fh│ │IRET INT 7Fh│ │IRET INT 7Fh│ │IRET
AX=0104h│ │ AX=0104h│ │ AX=0104h│ │
│ │ │ │ │ │
┌─────────┴───────┴────────────────────┴──────┴────────────────┴──────┴────┐
│ EHLLAPI Virtual Device Driver (VHAPI) │
├───────────┬───┬──────────┬────┬──────────┬────┬──────────┬───────────────┤
│ EHLLAPI[1]│ │EHLLAPI[2]│ │EHLLAPI[3]│ │EHLLAPI[4]│........... │
├───────────┴───┴──────────┴────┴──────────┴────┴──────────┴───────────────┤
│ LLAPI │
├──────────────────────────────────────────────────────────────────────────┤
│ 3270 Emulator │
└──────────────────────[Communications Manager]────────────────────────────┘