0.9b (c) 1995 Peter Childs
The function retrieves information about a userid entry in the message name table.
Syntax
MyRc = NetGetInfo(NETMESSAGENAME, 'msgNameInfo', SrvName, MsgName)
Parameters
The parameters specified are:
'msgNameInfo' The REXX variable receiving the result. The variable is divided into:
o msgNameInfo.name
The messaging name
o msgNameInfo.forward_flag
The value specifies whether messages will be sent to a user or application on the local computer, or forwarded to a user or application on a remote computer
o msgNameInfo.forward
The value will specify the user name to which the message will be sent, if messages are to be forwarded
SrvName The server or requester computer name
MsgName The message name
Note
The server or requester computer name can be specified as '' for a local server or computer.
Example
/* Get message name information */ call RxFuncAdd 'LoadLsRxutFuncs', 'LSRXUT', 'LoadLsRxutFuncs' call LoadLsRxutFuncs NETMESSAGENAME = 80 SrvName = '\\ILIDC' MsgName = 'LINDBERG' myRc = NetGetInfo(NETMESSAGENAME, 'msgNameInfo', SrvName, MsgName) if myRc <> '0' then do say 'Got error from NetGetInfo() ' myRc call DropLsRxutFuncs exit 9 end say say "Message Name: " msgNameInfo.name say "Forward flag: " msgNameInfo.forward_flag say "Forward to: " msgNameInfo.forward call DropLsRxutFuncs call RxFuncDrop 'LoadLsRxutFuncs' exit 0
Example Output
Message Name: LINDBERG Forward flag: Not forwarded Forward to: N/A
Inf-HTML End Run - Successful