Click here to Skip to main content
15,892,575 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
AOA

I want to use windows built-in Login Screen for my applications both Winform and WPF.

Regards
Posted

You can't.

What you get is the users security token. When the user launches your application, it is launched AS THE USER, inheriting the users security token.

The token is passed to various things that will accept it, such as a SQL Server login when using a connection string that specifies Integrated Security and the server is setup to use Windows Authentication.

Perhaps if you specified exactly what you're trying to do with this someone can suggest something.
 
Share this answer
 
Thanks for quick reply.

I don't want to use custom log on screen as i created, i want to authenticate my application from Active Directory by using the Operating System Log in Screen.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900