#include "Ltprinter.h"
L_INT pEXT_CALLBACK YourFunction(pszPrinterName, dwJobID, dwFlags, pData)
L_TCHAR * pszPrinterName; |
printer name |
DWORD dwJobID; |
print job ID |
DWORD dwFlags; |
flags |
L_VOID * pData; |
pointer to additional parameters |
Callback function fired for every print job.
Parameter | Description | |
pszPrinterName | Character string that contains the name of the LEADTOOLS Virtual Printer Driver. | |
dwJobID | Print job ID for the document being printed. | |
dwFlags | Flags that indicate the status of the print job. Possible values are: | |
Value | Meaning | |
PRN_JOB_START | [0x00000001L] The print job being started. | |
PRN_JOB_END | [0x00000002L] The print job being ended. | |
pData | A void pointer that you can use to access a variable or structure that contains data that your callback function needs. This gives you a way to receive data indirectly from the function that uses this callback function. This is the same pointer passed to the L_PrnRegisterJobCallback function in the pData parameter. | |
Keep in mind that this is a void pointer, which must be cast to the appropriate data type within your callback function. |
SUCCESS |
The function was successful. |
< 1 |
An error occurred. Refer to Return Codes. |
This callback function gives a status about the print job as it is being started or ended.
Required DLLs and Libraries
LTPRINTER |
Functions: |
L_PrnInstallPrinter, L_PrnRegisterJobCallback, L_PrnUnRegisterJobCallback |
Topics: |
LEADTOOLS Printer: Register and Un-register Callback Functions |
|
For an Example, refer to L_PrnRegisterJobCallback.
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET