Products Downloads


French version


 

 

This function is used to enumerate the printers installed on the current workstation.

 

Context

  • Windows client,

  • Adelia Cloud client.

 

Parameters

ALPHA

PrinterName

Name of the printer.

NUM_BIN_2

PrinterNameLg

Size of the PrinterName buffer.

NUM_BIN_2

PrinterNum

Increment number in the list.

BOOL

ReturnCode

Return code for the operation:

*TRUE   if the operation was completed successfully.

*FALSE  if the operation failed.

 

Note: The first time this function is called, PrinterNum must be set to 0. This parameter must then be incremented by 1 before each new call, until the ReturnCode returns *FALSE. In addition, the VatoolBx DLL must remain loaded until the end of the enumeration.

 

Example

PrinterNum = 0

LOAD_DLL 'VaToolBx'

CALL_DLL 'VATOOLBX.DLL' 'VaToolBxEnumPrinter' PrinterName PrinterNameLg PrinterNum ReturnCode

DO_WHILE ReturnCode= *TRUE

*/ PrinterName contains the name of the printer (e.g.\\PRTSRV\PRINTER1)

PrinterNum = PrinterNum + 1

CALL_DLL 'VATOOLBX.DLL' 'VaToolBxEnumPrinter' PrinterName PrinterNameLg PrinterNum ReturnCode

REDO

UNLOAD_DLL 'VaToolBx'

 

 

List of the VaToolBx functions by topic

 

↑ Top of page


  • Aucune étiquette