NWPSJobWrite(3nw)
NWPSJobWrite --
creates/modifies print job record
Synopsis
#include <nwps_job.h>
or
#include <nwpsrv.h>
NWCCODE NWAPI NWPSJobWrite
(WORD connType,
DWORD connID,
char NWFAR
dbOwner,
char NWFAR
pJobName,
NWPS_Job_Rec NWFAR
pJobRecord);
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 record to be written.
- pJobRecord
-
(IN) Points to NWPS_Job_Rec.
Return values
- 0x0000
-
NWPSE_SUCCESSFUL
- 0x7770
-
NWPSE_ERROR_BAD_VERSION
- 0x7772
-
NWPSE_ERROR_EXPANDING_DB
- 0x7774
-
NWPSE_ERROR_OPENING_DB
- 0x7777
-
NWPSE_ERROR_WRITING_DB
- 0x7778
-
NWPSE_ERROR_WRITING_RECORD
- 0x7779
-
NWPSE_INTERNAL_ERROR
- 0x777A
-
NWPSE_JOB_NOT_FOUND
Notices
dbOwner is the username of the owner whose database is written to.
If a print job record with the same name already exists, it is overwritten
with the data pointed to by pJobRecord. Otherwise, a new record
is created.
Services
Print Server
References
NWPSJobRead(3nw),
NWPSJobSetDefault(3nw),
NWCCOpenConnByName(3nw),
NWDSCreateContext(3nw)
30 January 1998
© 1998 The Santa Cruz Operation, Inc. All rights reserved.