PRNEMFRGSPROC

Summary

Callback function fired for every page printed using the LEADTOOLS Virtual Printer Driver.

Syntax

#include "Ltprinter.h"

L_INT pEXT_CALLBACK YourFunction(pszPrinterName, hMem, uSize, pData)

Parameters

L_TCHAR * pszPrinterName

Character string that contains the name of the LEADTOOLS Virtual Printer Driver.

HGLOBAL hMem

Handle to the block of memory that contains an EMF data file.

L_UINT uSize

The size of the data file in memory pointed to by the hMem parameter.

L_VOID * 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_PrnRegisterEMFCallback 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.

Returns

Value Meaning
SUCCESS The function was successful.
< 1 An error occurred. Refer to Return Codes.

Comments

The contents of each printed page will be received in the EMF data file pointed to by the hMem parameter. When the hMem parameter is no longer needed, free it by calling the GlobalFree function.

Required DLLs and Libraries

See Also

Functions

Topics

Example

For an example, refer to L_PrnRegisterEMFCallback.

Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Virtual Printer C API Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.