Request a new login
-
I need to programatically bring up the Windows logon dialog. I don't want to find any usernames or passwords, just force the user to re-enter his credentials - this is to prevent unauthorised users from changing settings in the application if the authorised user has walked away from his desk for a few minutes. There must be a simple c# method that does this!
-
I need to programatically bring up the Windows logon dialog. I don't want to find any usernames or passwords, just force the user to re-enter his credentials - this is to prevent unauthorised users from changing settings in the application if the authorised user has walked away from his desk for a few minutes. There must be a simple c# method that does this!
Actually, I think you want to enable the screen saver and make sure that it is asking for a password to unlock. You can't force the Windows Login to show up again just to authenticate. If your application times out and locks itself, you have to put up your own form to capture credentials, then you can pass those to something like Active Directory to authenticate. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
-
Actually, I think you want to enable the screen saver and make sure that it is asking for a password to unlock. You can't force the Windows Login to show up again just to authenticate. If your application times out and locks itself, you have to put up your own form to capture credentials, then you can pass those to something like Active Directory to authenticate. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
Thanks, OK, but is there a way to force the screensaver to come up immediately? I just want to ensure that, when someone presses a 'save' button that changes a database, they immediately get a request for credentials. I don't want to create a new form to capture credentials since there is no way to check the Windows NT password.
-
I need to programatically bring up the Windows logon dialog. I don't want to find any usernames or passwords, just force the user to re-enter his credentials - this is to prevent unauthorised users from changing settings in the application if the authorised user has walked away from his desk for a few minutes. There must be a simple c# method that does this!
-
I need to programatically bring up the Windows logon dialog. I don't want to find any usernames or passwords, just force the user to re-enter his credentials - this is to prevent unauthorised users from changing settings in the application if the authorised user has walked away from his desk for a few minutes. There must be a simple c# method that does this!