I know, but LogonUser has a way of doing it.
LogonUser has an argument called "dwLogonType" which can take one of these values...
Dim LOGON_INTERACTIVE As Long = 2
Dim LOGON_NETWORK As Long = 3
Dim LOGON_BATCH As Long = 4
Dim LOGON_SERVICE As Long = 5
If you called LogonUser with dwLogonType = 2, you should get a DialogBox.
Anyway, about my problem, I dont know what I am missing.
I have tried it on my computer and another computer. But with my login ID in both places. I am yet to try it on somebody else's login ID. But I am able to login on my machine every morning. So I am missing something. I just dont know exactly what it is yet.
Shekhar