It really works very well more often than not. However, there are conditions the place this nonetheless fails with 'ret = five' ("Access Denied"). Retrying infinitely isn't going to help. I do not know why It really is unreliable, but I've the feeling that Home windows Explorer is attempting alone to log in concurrently, using a Incorrect username/