NWPSPdfAddModeFunction(3nw)


NWPSPdfAddModeFunction -- adds previously defined function to previously defined mode list in PRINTDEF

Synopsis

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

NWCCODE NWAPI NWPSPdfAddModeFunction (WORD connType, DWORD connID, char NWFAR *deviceName, char NWFAR *modeName, char NWFAR *funcName, WORD location);

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.

deviceName
(IN) Points to the associated device name.

modeName
(IN) Points to the mode name.

funcName
(IN) Points to the function name.

location
(IN) Specifies the insertion point or -1.

Return values

0x0000
Successful

-1
General Error

other
Bindery or Directory Services Errors

Notices

The new function is added at the specified location in the mode's list, with 0 being the first location. If location is past the end of the list or is -1, the function is added as the last function in the mode's list.

Services

Print Server

References

NWPSPdfAddDevice(3nw), NWPSPdfAddFunction(3nw), NWPSPdfDeleteModeFunction(3nw), NWPSPdfReadModeFunction(3nw), NWCCOpenConnByName(3nw), NWDSCreateContext(3nw)
30 January 1998
© 1998 The Santa Cruz Operation, Inc. All rights reserved.