NWPSPdfAddFunction(3nw)


NWPSPdfAddFunction -- adds function string to PRINTDEF

Synopsis

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

NWCCODE NWAPI NWPSPdfAddFunction (WORD connType, DWORD connID, char NWFAR *deviceName, char NWFAR *funcName, WORD funcSize, BYTE NWFAR *funcString);

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.

funcName
(IN) Points to the function name to add.

funcSize
(IN) Specifies the count of bytes in the function to add.

funcString
(IN) Points to the list of bytes for the new function.

Return values

0x0000
Successful

-1
General Error

other
Bindery or Directory Services Errors

Notices

funcSizes should be set to the number of bytes in funcString.

Services

Print Server

References

NWPSPdfAddDevice(3nw), NWPSPdfDeleteFunction(3nw), NWPSPdfReadFunction(3nw), NWPSPdfUpdateFunction(3nw), NWPSPdfAddMode(3nw), NWPSPdfAddModeFunction(3nw)
30 January 1998
© 1998 The Santa Cruz Operation, Inc. All rights reserved.