This function is used to test the validity of a printer resource.
Context
Windows client
Windows server,
Adelia Cloud client.
Parameters
ALPHA(n) |
PrinterName |
Name of the printer resource to be tested. |
BOOL |
Result |
Result value: *TRUE if the printer resource is valid. *FALSE otherwise. |
Example
ALPHA(128) = PrinterName
BOOL = Result
PrinterName = '\\PRINTSRV\PRINTOPTRA_1'
CALL_DLL 'VATOOLBX.DLL' 'VaToolBxIsPrinterValid' PrinterName Result
If the resource '\\PRINTSRV\PRINTOPTRA_1' is a valid printer resource, then the 'Result' variable will be set to *TRUE when returned after the call to the VaToolBxIsPrinterValid function. Otherwise, the 'Result' variable will be set to *FALSE.
List of the VaToolBx functions by topic