L_EpnIsPrinterInList

#include "l_eprint.h"

L_INT EXT_FUNCTION L_EpnIsPrinterInList (hPrintersList, pBatchPrinterInfo, pnIndex)

HEPNPRINTERSLIST hPrintersList;

/* handle to an existing printers list */

EPNBATCHPRINTERINFO L_FAR * pBatchPrinterInfo;

/* pointer to a structure */

L_INT L_FAR * pnIndex;

/* pointer to index */

Indicates whether a printer exists in 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 check whether it is exist in the printers list.

pnIndex

Pointer to a variable to be updated with a zero-based index value of the specified printer in the printers list.

Comments

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

If the printer does not exist in the printers list, the value of the pnIndex parameter will be –1 and the function will fail and return an error code.

Returns

SUCCESS

The function was successful.

< 1

An error occurred. Refer to Return Codes.

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_EpnAddPrinterToList, L_EpnRemovePrinterFromList, L_EpnGetPrinterFromList

Topics:

ePrint: Printers list

 

Redirecting to a Printer Redirection List

Example

For an example, refer to L_EpnRemovePrinterFromList.