NWPSComSetRemoteMode(3nw)


NWPSComSetRemoteMode -- sets printer mode

Synopsis

   #include <nwps_com.h> 
   or 
   #include <nwpsrv.h> 
   

NWCCODE NWAPI NWPSComSetRemoteMode (WORD spxID, WORD printerID, BYTE newMode);

Description

The parameters are as follows:

spxID
(IN) Specifies the SPX connection to the print server.

printerID
(IN) Specifies the printer (0 to maximum number of printers minus 1).

newMode
(IN) Specifies the mode to set the printer to: 0 = NWPS_PRINTER_SHARED; 1 = NWPS_PRINTER_PRIVATE.

Return values

0x0000
NWPSE_SUCCESSFUL

0x00ED
NWPSE_CONNECTION_TERMINATED

0x0103
NWPSE_BINDERY_LOCKED

0x0301
NWPSE_NOT_ENOUGH_MEMORY

0x0302
NWPSE_NO_SUCH_PRINTER

0x0303
NWPSE_INVALID_PARAMETER

0x0304
NWPSE_PRINTER_BUSY

0x0307
NWPSE_NOT_CONNECTED

0x030C
NWPSE_DOWN

0x030E
NWPSE_NO_RIGHTS

0x0401
NWPSE_NOT_USER_START_PRINTER

Notices

NWPSComSetRemoteMode applies only to printers that are remote in relation to the print server (user-loadable).

The packet is sent on the client socket. When newMode is NWPS_PRINTER_SHARED, the printer is shared with the network. When newMode is NWPS_PRINTER_PRIVATE, the printer is private to the workstation.

Services

Print Server

NCP calls

None

References

NWPSComAttachToPrintServer(3nw), NWPSComGetNextRemotePrinter(3nw), NWPSComLoginToPrintServer(3nw), NWPSComRequestRemotePrinter(3nw)
30 January 1998
© 1998 The Santa Cruz Operation, Inc. All rights reserved.