NetBase for MPE Reference Guide

Chapter 6
6-12
NBRPC Procedure Calling Conventions
Use the following syntax and parameters for NBRPC.
Syntax
NBRPC (node,status,procname,xlname,sendbuff,sendlen,recvbuff,recvlen)
Parameters
Parameter Description
node
A 32-bit integer specifying the remote NetBase node number.
status
A 32-bit signed integer value passed by reference. The status parameter is read
in two 16-bit fields:
Bits Value/Meaning
16:16 status.subsys: Identifies the subsystem which initiated the error or
warning. The valid values are:
0 = The error was returned by the user procedure.
20034 = The error was returned by NetBase.
104 = The error was returned by the load of the remote procedure.
0:16 status.info: Identifies the type of error or warning.
procname
A 28-byte character array containing the remote procedure name, case sensitive.
The first character in the array is used to delimit the name (%getopen%).
xlname
A 28-byte character array containing the filename of the XL library where the
remote procedure resides. The first character in the array is used to delimit the
name (%XL.PUB.PROD%).
sendbuff
A user-defined structure to be passed to the remote procedure.
sendlen
A 32-bit signed integer by reference passing the length in bytes of sendbuff.
recvbuff
A user-defined structure to be returned to the calling process.
Continued