NWPSCfgGetPrinterDefaults(3nw)
NWPSCfgGetPrinterDefaults --
returns default printer settings for type of printer
Synopsis
#include <nwps_cfg.h>
or
#include <nwpsrv.h>
NWCCODE NWAPI NWPSCfgGetPrinterDefaults
(WORD printerType,
WORD subtype,
NWPS_PConfig NWFAR *pConfig);
Description
The parameters are as follows:
- printerType
-
(IN) Specifies the type of printer.
- subtype
-
(IN) Specifies the port number for the printer.
- pConfig
-
(OUT) Points to NWPS_PConfig containing default settings.
Return values
- 0x0000
-
Successful
- -1
-
General Error
- other values
-
Bindery or Directory Services Errors
Notices
If printerType is set to NWPS_DEFAULT, the default
printer type is selected.
If subtype is set to NWPS_DEFAULT, the default port
is selected. subtype indicates the port number as follows:
NWPS_PORT_1 0
NWPS_PORT_2 1
NWPS_PORT_3 2
NWPS_PORT_4 3
NWPS_PORT_5 4
NWPS_PORT_6 5
NWPS_PORT_7 6
NWPS_PORT_8 7
NWPS_PORT_9 8
NWPS_PORT_10 9
Services
Print Server
NCP calls
None
References
NWPSCfgAddPrinterAttr(3nw),
NWPSCfgGetFirstPrinterAttr(3nw),
NWPSCfgGetNextPrinterAttr(3nw),
NWPSCfgEndNextPrinterAttr(3nw)
30 January 1998
© 1998 The Santa Cruz Operation, Inc. All rights reserved.