Reputation:
My client has just said that he would like me to implement a feature where when he starts up the app I made for him, he would simply like to enter his Windows User Account username and password to login to the app.
I've read a tutorial about this somewhere last year, but for the life of me, can't find it anywhere now. And a few google searches don't reveal anything for me.
Are there any docs/tuts/articles on this still hanging around somewhere?
Thank you
Upvotes: 2
Views: 1677
Reputation: 36026
Um, they already entered those credentials when they logged onto their current session. In which case, just the fact that the user has attempted to run the app indicates they have permission to use it.
Upvotes: 2
Reputation: 9500
What exactly does cause difficulties for you? Creating a logon form, impersonation a thread, impersonating an access to a network resource?
Anyway check LogonUser function
Upvotes: 0
Reputation: 159
I think it depends on whether that user is in an Active Directory or in the local user store, but this should help you get started.
Upvotes: 1