RASRGSPROC Function

#include "l_eprint.h"

L_INT pEXT_CALLBACK YourFunction (pszPrinterName, hDIP, uSize, uType, pData)

L_CHAR L_FAR * pszPrinterName;

/* printer name */

HGLOBAL hDIP;

/* handle to a memory block */

L_UINT uSize;

/* size of memory block */

L_UINT uType;

/* reserved for future use */

L_VOID L_FAR * pData;

/* pointer to additional parameters */

Callback function fired for every page printed using the LEADTOOLS ePrint.

Parameter

Description

pszPrinterName

Character string that contains the name of the ePrint printer.

hDIP

Handle to the block of memory that contains the Windows BITMAPINFO structure that contains information about a DIB.

uSize

The size of the Windows BITMAPINFO structure in memory pointed to by hDIP parameter.

uType

Reserved.

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

The contents of each printed page will be received in the Windows BITMAPINFO structure pointed to by the hDIB parameter.

When the hDIP is no longer needed, it should be freed by calling the GlobalFree function.

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, EMFRGSPROC

Topics:

ePrint: Register and Un-register Callback Functions

 

Registering Callback Functions

Example

For an example, refer to EMFRGSPROC.