It really works properly most of the time. On the other hand, you can find instances where by this nevertheless fails with 'ret = five' ("Access Denied"). Retrying infinitely will not help. I don't know why it's unreliable, but I have the sensation that Home windows Explorer is trying by itself to log in concurrently, employing a Improper username/