i am developing a scheduler in which i want to match the username and password entered by the user 开发者_Python百科with the system's login credentials in c#.Is there any way to do this.
Why don't you use the Windows Task Scheduler?
Just look http://www.codeproject.com/KB/cs/tsnewlib.aspx
BTW you can gather the currently logged on user by using System.Environment or from the current Thread.
WindowsIdentity.GetCurrent().Name;
Getting the default credentials for the current user:
CredentialCache.DefaultCredentials;
精彩评论