NWPSJobDelete(3nw)
NWPSJobDelete --
removes print job record from PRINTCON
Synopsis
#include <nwps_job.h>
or
#include <nwpsrv.h>
NWCCODE NWAPI NWPSJobDelete
(WORD connType,
DWORD connID,
char NWFAR
dbOwner,
char NWFAR
pJobName);
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 user name of the owner of the database where the print
job is defined.
- pJobName
-
(IN) Points to the print job record name to delete.
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
Since multiple PRINTCON databases exist, dbOwner
specifies which database is affected. If the print job does not exist in
the database, NWPSE_SUCCESSFUL is returned.
If dbOwner is NWPS_DBOWNER_PUBLIC, the public database
of the NetWare server or these of the nearest organizational unit on the
directory is affected. This is not valid for NWPS_BINDERY_PRE_40.
In NWPS_BINDERY_SERVICE and NWPS_BINDERY_SERVICE_PRE_40
mode, dbOwner is a user on the NetWare server.
In NWPS_DIRECTORY_SERVICE mode, dbOwner is a user or
an organizational unit in the Directory.
Services
Print Server
References
NWPSJobWrite(3nw),
NWPSJobRead(3nw),
NWCCOpenConnByName(3nw),
NWDSCreateContext(3nw)
30 January 1998
© 1998 The Santa Cruz Operation, Inc. All rights reserved.