Function NnetPsArp() Foundation

Determines available remote printers.

Syntax
NnetPsArp( <cPrintServerName>        , ;
           [<cFileServer|nConnectID>]  ;  // Default: NnetSname()
         ) --> aRemotePrinters
Return

Returns a two dimensional array with information about remote printers serviced by the print server <cPrintServerName>. #define constants are found in XBTNWPS.CH to access the subarrays:

Structure of the NnetPsArp() Subarray
Element Constant Datatype Description
1 ARP_NAME C Name of remote printer
2 ARP_NUM N Remote printer number
3 ARP_TYPE N Type of remote printer

Possible values for the array element ARP_TYPE are listed in the following table:

Values for the ARP_TYPE element
Constant Description
PSP_REMLPT1 Remote printer connected to LPT1
PSP_REMLPT2 Remote printer connected to LPT2
PSP_REMLPT3 Remote printer connected to LPT3
PSP_REMCOM1 Remote printer connected to COM1
PSP_REMCOM2 Remote printer connected to COM2
PSP_REMCOM3 Remote printer connected to COM3
PSP_REMCOM4 Remote printer connected to COM4

Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.