L_EpnGetPrintersCount

#include "l_eprint.h"

L_INT EXT_FUNCTION L_EpnGetPrintersCount (hPrintersList, pnCount);

HEPNPRINTERSLIST hPrintersList;

/* handle to an existing printers list */

L_INT L_FAR * pnCount;

/* printers count */

Gets the number of printers in the printers list.

Parameter

Description

hPrintersList

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

pnCount

Pointer to a variable to be updated with the number of printers in the printers 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.

The printers list is the list of printers to which the print command will be sent.

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_EpnCreateRedirectionDC, L_EpnCreatePrintersList, L_EpnDestroyPrintersList, L_EpnAddPrinterToList, L_EpnRemovePrinterFromList, L_EpnGetPrinterFromList, L_EpnIsPrinterInList, L_EpnSetPrinterBatchPrintersList, L_EpnGetPrinterBatchPrintersList

Topics:

ePrint: Printers list

 

Redirecting to a Printer Redirection List

Example

/* The hPrintersList passed should be an  HEPNPRINTERSLIST already created using the L_EpnCreatePrintersList function. */

L_INT GetPrintersCount( HEPNPRINTERSLIST hPrintersList ) 
{
   L_INT nPrintersCount = 0; 
   L_EpnGetPrintersCount( hPrintersList, & nPrintersCount );
 return nPrinttersCount; 
}