BOOL AddPrintProcessor(pName, pEnvironment, pPathName, pPrintProcessorName) | |||
LPTSTR pName; | |||
LPTSTR pEnvironment; | |||
LPTSTR pPathName; | |||
LPTSTR pPrintProcessorName; |
The AddPrintProcessor function adds to the list of supported Print Processors. It assumes that all the necessary files have been copied to the Print Processor Directory that was returned from the GetPrintProcessorDirectory function. The AddPrintPrintProcessor function simply links the Print Processor FileName with the Print Processor Name. This Name is returned from EnumPrintProcessors.
pName
Points to a null-terminated string specifying the Server that the Print Processor is to be added to. If NULL, then the Print Processor is installed locally.
pEnvironment,
Points to a null-terminated string that specifies the machine and operating system environment (“W32X86” for example).
pPathName
Points to a null-terminated string that specifies the FileName of the Print Processor. This file must reside in the Print Processor Directory.
pPrintProcessorName
Points to a null-terminated string that specifies the name of the print processor to add.
The return value is TRUE if the function was successful, or FALSE if an error occurred. To obtain extended error information, use the GetLastError function.