L_EpnAddPrinterToList

#include "l_eprint.h"

L_INT EXT_FUNCTION L_EpnAddPrinterToList (hPrintersList, pBatchPrinterInfo)

HEPNPRINTERSLIST hPrintersList;

/* handle to an existing printers list */

EPNBATCHPRINTERINFO L_FAR * pBatchPrinterInfo;

/* pointer to a structure */

Adds a printer to the printers list.

Parameter

Description

hPrintersList

Handle to an existing printers list, created by calling the L_EpnCreatePrintersList function.

pBatchPrinterInfo

Pointer to an EPNBATCHPRINTERINFO structure that contains information about the printer to be added to the printer list.

Returns

SUCCESS

The function was successful.

< 1

An error occurred. Refer to Return Codes.

Comments

Support for Basic functionality must be unlocked by calling the L_EpnUnlockSupport function before using this function.

This function will make a copy of the EPNBATCHPRINTERINFO structure and its information internally.

Required DLLs and Libraries

LPKRN

For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to ePrint Files.

See Also

Functions:

L_EpnSetPrinterBatchPrintersList, L_EpnGetPrinterBatchPrintersList, L_EpnCreateRedirectionDC, L_EpnGetPrintersCount, L_EpnCreatePrintersList, L_EpnDestroyPrintersList, L_EpnRemovePrinterFromList, L_EpnGetPrinterFromList, L_EpnIsPrinterInList

Topics:

ePrint: Printers list

 

Redirecting to a Printer Redirection List

Example

For an example, refer to L_EpnInstallOEMPrinter.