REXX Tips & Tricks, Version 2.80


Inf-HTML [About][Toc][Index] 0.9b (c) 1995 Peter Childs


DMrxWPS


Name     DMRxWPS 
Version  08/03/1996
Author   David MacMahon 
         (see EMail Addresses)
Distrib. Freeware for 
         privat use 
Type     REXX DLL 
Price    -
Note     for WARP & above only 
Source   BBS 
         Name: DMXRWPS.* 

Description from the author: 
"DMrxWPS.dll is a REXX library that provides a bridge between REXX scripts 
and some of the WPS related OS/2 API functions, referred to as "Win 
functions".  Its main purpose is to facilitate the installation and the 
reinstallation or updating of WPS classes.  The current version of DMrxWPS 
supports only three Win functions in addition to its own two "helper 
functions".  One of the Win functions, WinQueryObjectPath, is only 
available on WARP or above.  Calling its corresponding DMrxWPS function, 
WpsQueryObjectPath, will not work on version of OS/2 before WARP. 
Many of the Win functions are available in the RexxUtil REXX library. 
DMrxWPS is intended to supplement RexxUtil, not replace it.  The three Win 
functions included in DMrxWPS are WpsQueryObject, WpsQueryObjectPath, and 
WpsSetObjectData.  The first two functions were chosen because they can be 
used together to obtain the path to a WPFileSystem derived template in the 
Templates folder without knowing the path of the Templates folder itself. 
This path can then be used to manipulate the template using functions from 
RexxUtil.  The sample script DelTmplt.cmd (included with DMrxWPS and 
described in section 3) shows how this can be done." 
The dll provides the following functions: 
 
 WpsLoadFuncs 
    Make the functions in DMRXWPS.DLL available to REXX. 
 WpsDropFuncs 
    Unload the DLL DMRXWPS.DLL 
 WpsQueryObject 
    Get the object handle of an object with an object ID 
 WpsQueryObjectPath 
    Get the path of an object 
 WpsSetObjectData 
    Set the data of an object 
   

Inf-HTML End Run - Successful