It really works nicely usually. On the other hand, you can find circumstances where by this however fails with 'ret = 5' ("Access Denied"). Retrying infinitely would not support. I have no idea why It can be unreliable, but I have the sensation that Home windows Explorer is trying alone to log in concurrently, using a Completely wrong username/pass