NWPSJobSetDefault(3nw)
NWPSJobSetDefault --
sets/resets specified default print job record
Synopsis
#include <nwps_job.h>
or
#include <nwpsrv.h>
NWCCODE NWAPI NWPSJobSetDefault
(WORD connType,
DWORD connID,
char NWFAR
dbOwner,
char NWFAR
pJobName,
char NWFAR
pJobOwner);
Description
The parameters are as follows:
- connType
-
(IN) Specifies either NWPS_BINDERY_SERVICE,
NWPS_BINDERY_SERVICE_PRE_40, or NWPS_DIRECTORY_SERVICE.
- connID
-
(IN) Specifies the connection or context identifier.
- dbOwner
-
(IN) Points to the username of the owner of the database.
- pJobName
-
(IN) Points to the name of the print job to set or unset as the default.
- pJobOwner
-
(IN) Points to the owner of the database where pJobName is defined.
Return values
- 0x0000
-
NWPSE_SUCCESSFUL
- 0x7770
-
NWPSE_BAD_VERSION
- 0x7774
-
NWPSE_ERROR_OPENING_DB
- 0x7775
-
NWPSE_ERROR_READING_DB
- 0x7777
-
NWPSE_ERROR_WRITING_DB
- 0x7779
-
NWPSE_INTERNAL_ERROR
- 0x777A
-
NWPSE_JOB_NOT_FOUND
Notices
dbOwner is the name of the user whose database is to be modified.
pJobName is the new default print job for the dbOwner's
database or NULL to remove the current default print job.
pJobOwner points to the database where pJobName is
defined. No attempt is made to verify that the print job exists in the
pJobOwner database.
Services
Print Server
References
NWPSJobGetDefault(3nw),
NWPSJobWrite(3nw),
NWCCOpenConnByName(3nw),
NWDSCreateContext(3nw)
30 January 1998
© 1998 The Santa Cruz Operation, Inc. All rights reserved.