Once again, your interpretaion is flawed. We have to assume that Ruud attempted to bring light to the fact that AddPrinterConnection() uses the ShareName and SetDefaultPrinter() uses the printer name.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.