Description |
XRexxInterface |
char * name | the symbolic name of the interface |
char * dllName | the name of the DLL |
char * proc | the name of your function |
Creates an interface to REXX. Therefore a C-function of you application (DLL) will be registered. The function must have following format:
REXXINTERFACE Handler(PRXSTRING commandString, PUSHORT flags, PRXSTRING returnString)
Commands which are not known in a rexx-script running in this interface
will be posted to the handler.
Creates an interface to REXX. Therefore a C-function of your application (EXE) will be registered.
The function must have following format:
REXXINTERFACE Handler(PRXSTRING commandString, PUSHORT flags, PRXSTRING returnString)
Commands which are not known in a rexx-script running in this interface will be posted to the handler.
If the method fails an exception of the type XRexxException is thrown.
If the method fails an exception of the type XRexxException is thrown.
Execute |
char * commandFile | name of a file which contains the script |
LONG type | type of command (see rexx program reference) |
XString * result | buffer for result |
SHORT returnCode | buffer for returncode |
XString * args | string which contains the arguments for the script |
LONG result return-code from the operating system
Run a REXX-script
GetHandler |
char * handlerName the name of the rexx interface used in the constructor
char * dllName name of the DLL if used (default is NULL)
XRexxInterface * pointer pointer to an interface (NULL if no interface found)
Returns a pointer to a XRexxInterface
DeregisterFunction |
char * name symbolic name of the function
LONG result return-code from the operating system
Deregister a function
IsFunctionRegistered |
char * name symbolic name of the function
BOOL result
Query if a function is registered
RegisterFunction |
char * name | symbolic name of the function which must be used in the rexx-script |
char * dllName | name of the dll |
char * proc | real name of the function |
LONG result return-code from the operating system
LONG result return-code from the operating system
Register a C-function of your application (DLL) so that it can be called from a rexx-script. The function must have the following format:
REXXINTERFACE MyFunc( PUCHAR name, ULONG argc, PRXSTRING argv, PSZ queue, PRXSTRING ret)
Register a C-function of your application (EXE) so that it can be called from a rexx-script. The
function must have the following format:
REXXINTERFACE MyFunc( PUCHAR name, ULONG argc, PRXSTRING argv, PSZ queue, PRXSTRING ret)
GetVar |
char * name name of the variable
XString * value buffer for the value of the variable
LONG result return-code from the operating system
Query a variable for a running rexx-script
SetVar |
char * name name of the variable
char * value value of the variable
LONG result return-code from the operating system
Set a variable for a running rexx-script