0.9b (c) 1995 Peter Childs
The function retrieves a list of printer queue processors on a server or workstation.
Syntax
MyRc = NetEnumerate(NETPRINTQPROC, 'prtQProcInfo', SrvName)
Parameters
The parameters specified are:
'prtQProcInfo' The REXX variable receiving the result. The variable is divided into:
o prtQProcInfo.0
The number of printer queue processors
o prtQProcInfo.i
Printer queue processor name entry i, where the variable i has a value from 1 to prtQProcInfo.0
SrvName The server computer name
Note
The server computer name can be specified as '' for a local computer.
Example
/* List printer queue processors */ call RxFuncAdd 'LoadLsRxutFuncs', 'LSRXUT', 'LoadLsRxutFuncs' call LoadLsRxutFuncs NETPRINTQPROC = 320 SrvName = '\\DOMAIN_CONTRLR' myRc = NetEnumerate(NETPRINTQPROC, 'prtQProcInfo', SrvName) if myRc <> '0' then do say 'Got error from NetEnumerate() ' myRc call DropLsRxutFuncs exit 9 end if prtQProcInfo.0 = 0 then do say 'No printer queue processor defined' call DropLsRxutFuncs exit 0 end say 'Number of entries: ' prtQProcInfo.0 say do i=1 to prtQProcInfo.0 say prtQProcInfo.i end call DropLsRxutFuncs call RxFuncDrop 'LoadLsRxutFuncs' exit 0
Example Output
Number of entries: 1 PMPRINT
Inf-HTML End Run - Successful