EPNBATCHPRINTERINFO

typedef struct tag_EPNBATCHPRINTERINFO
{
   L_UINT uStructSize; 
   L_CHAR szPrinterName[ MAX_PRINTER_NAME ]; 
   DEVMODE L_FAR * pInitDevmode; // in devmode. 
   DEVMODE L_FAR * pPrinterDevMode; // out devmode. //internal use. 
   EPNENHOPTIONS EnhOptions; 
   L_UINT32 dwFlags; 
} EPNBATCHPRINTERINFO, L_FAR * pEPNBATCHPRINTERINFO;

The EPNBATCHPRINTERINFO structure provides information about the printers in the HEPNPRINTERSLIST.

Member

Description

uStructSize

Size of this structure in bytes, for versioning. Use the sizeof() macro to calculate this value.

szPrinterName

Character string that contains the printer name.

pInitDevmode

Pointer to a DEVMODE structure. This will be used as an initialization data.

pPrinterDevMode

Pointer to a DEVMODE structure. This is the output DEVMODE.

EnhOptions

EPNENHOPTIONS structure that contains the enhanced printing options. This is an optional structure. Use this member only if the value of dwFlags is set to EPN_BATCHPRINT_VALIDENHANCEDOPTIONS.

dwFlags

Flags that indicate additional information. Possible value is:

 

Value

Meaning

 

EPN_BATCHPRINT_VALIDENHANCEDOPTIONS

[0x00000001] Enable using the EnhOptions member.

Comments

The user is not responsible to allocate or destroy the pointer pPrinterDevMode. It will be allocated and destroyed internally.

This structure is used with the following functions:

L_EpnAddPrinterToList

L_EpnGetPrinterFromList

L_EpnIsPrinterInList