0.9b (c) 1995 Peter Childs
The function retrieves group related information.
Syntax
MyRc = NetGetInfo(NETGROUP, 'groupInfo', SrvName, GroupName)
Parameters
The parameters specified are:
'groupInfo' The REXX variable receiving the result. The variable is divided into:
o groupInfo.name
The group name
o groupInfo.comment
The group comment
SrvName The server computer name
GroupName The name of the group. This value must be supplied
Note
The server computer name can be specified as '' for a local server.
Example
/* Get group comment */ call RxFuncAdd 'LoadLsRxutFuncs', 'LSRXUT', 'LoadLsRxutFuncs' call LoadLsRxutFuncs NETGROUP = 70 SrvName = '\\ILIDC' GroupName = 'CSUSERS' myRc = NetGetInfo(NETGROUP, 'groupInfo', SrvName, GroupName) if myRc <> '0' then do say 'Got error from NetGetInfo() ' myRc call DropLsRxutFuncs exit 9 end say say "Group Name: " groupInfo.name say "Group Comment: " groupInfo.comment call DropLsRxutFuncs call RxFuncDrop 'LoadLsRxutFuncs' exit 0
Example Output
Group Name: CSUSERS Group Comment: The Client/Server users group
Inf-HTML End Run - Successful