0.9b (c) 1995 Peter Childs
The function modifies a control parameter of a requester.
Syntax
MyRc = NetSetInfo(NETWKSTA, 'PARAMETER', parmValue, ReqName)
Parameters
The parameters required are:
'PARAMETER' The parameter name of the requester parameter value to be modified. The parameter values that causes a change of the requester definitions are specified below. Only one parameter value can be changed at a time. If the parameter is invalid or the parameter value is unknown or in error, no changes will occur.
o charwait
The number of seconds the requester waits for a remote serial or communication device to become available
o chartime
The number of milliseconds the requester waits to collect data to send to a remote serial or communication device
o charcount
The number of bytes of information the requester sends to a remote serial or communication device
o errlogsz
The maximum size (in KB) of the error log file of the requester
o printbuftime
The number of seconds closing print jobs are closed
o wrkheuristics
A string of flags used to control a requesters operation
o oth_domains
A string listing all domains on which the machine currently is listed. The string is space-delimited list of domains
parmValue The value of the parameter that is being modified
ReqName The requester computer name
Note
The requester computer name can be specified as '' for a local requester.
Example
/* Perform Net Wksta Set info */ call RxFuncAdd 'LoadLsRxutFuncs', 'LSRXUT', 'LoadLsRxutFuncs' call LoadLsRxutFuncs NETWKSTA = 350 CpuName = '\\KING_BALU' wkstaInfo.parm = 'wrkheuristics' wkstaInfo.value = '11111111213111111100010111201112210012110' myRc = NetSetInfo(NETWKSTA, wkstaInfo.parm, wkstaInfo.value, CpuName) if myRc <> '0' then do say 'Got error from NetSetInfo() ' myRc exitCode = 9 end else do say "Set parameter successfully" exitCode = 0 end call DropLsRxutFuncs call RxFuncDrop 'LoadLsRxutFuncs' exit exitCode
Example Output
Set parameter successfully
Inf-HTML End Run - Successful