The logic is quite simple ...

1. assign the result of GetDefaultPrinter to a variable.
2. Delete all Printers
3. Reconnect printers and if there is one that matches the stored variable set it as default.

That's at least what I read (sorry if I didn't follow the complete war and peace here )


Edited by Jochen (2005-02-09 04:15 PM)
_________________________