#include "l_eprint.h"
L_INT pEXT_CALLBACK YourFunction (pszPrinterName, dwJobID, dwFlags, pData)
/* printer name */ | |
DWORD dwJobID; |
/* print job ID */ |
DWORD dwFlags; |
/* flags */ |
/* pointer to additional parameters */ |
Callback function fired for every print job.
Parameter |
Description |
|
pszPrinterName |
Character string that contains the name of the ePrint printer. |
|
dwJobID |
Print job ID for the document being printed. |
|
dwFlags |
Flags that indicate the status of the print job. Possible values are: |
|
|
Value |
Meaning |
|
EPRINT_JOB_START |
[0x00000001L] The print job being started. |
|
EPRINT_JOB_END |
[0x00000002L] The print job being ended. |
|
EPRINT_START_PROCESS_JOB |
[0x00000004L] Processing Printed Job is started. |
|
EPRINT_END_PROCESS_JOB |
[0x00000008L] Processing Printed Job is 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_EpnRegisterCallback function in the pCallbackInfo parameter. |
|
|
Keep in mind that this is a void pointer, which must be cast to the appropriate data type within your callback function. |
Returns
SUCCESS |
This function does not take into consideration the returned values. |
Comments
This callback function gives a status about the print job as it is being started or ended.
Required DLLs and Libraries
LPKRN For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application. |
See Also
Functions: |
L_EpnInstallOEMPrinter, L_EpnRegisterCallback, L_EpnUnRegisterCallback, SAVESTATUSPROC |
Topics: |
|
|
Example
For an example, refer to L_EpnRegisterCallback.