Try
code:
$rc=addprinterconnection('\\server\printername')
? 'Error '+@ERROR+' - '+@SERROR
? 'AddPrinterConnection = '+$rc
get $rc

_________________________
There are two types of vessels, submarines and targets.