C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Forums » .NET » .NET »

Windows Service


Posted Date: 26 Aug 2008      Posted By: Sheetal Bavdhankar      Member Level: Silver     Points: 1   Responses: 2



I want to create a windows service through vb.net 2.0, through which i want it could keep track to users logged on the system. How to access windows login accounts in VB.Net? Which namespace could be use which may provide this kind of fucntionality?




Responses

Author: akku    26 Aug 2008Member Level: SilverRating: 2 out of 52 out of 5     Points: 1

Check This

http://bytes.com/forum/thread388513.html



Author: mythili d    26 Aug 2008Member Level: SilverRating: 2 out of 52 out of 5     Points: 6

use this namespace System.DirectoryServices

and this is working code to validate a user name and password from windows login account in c#.net you can get a lot of code converters online . hope this helps

try
{
Roman.Data.BO.SymmCrypto cryp = new Roman.Data.BO.SymmCrypto(Roman.Data.BO.SymmCrypto.SymmProvEnum.DES);
string unencryp = cryp.Decrypting(password, System.Web.Configuration.WebConfigurationManager.AppSettings["CryptoKey"]);

DirectoryEntry de = new DirectoryEntry(System.Web.Configuration.WebConfigurationManager.AppSettings["FullDomain"], username, unencryp);
string name = de.Name;
return true;
}
catch (Exception ex)
{
return false;
}



Post Reply

 This thread is locked for new responses. Please post your comments and questions as a separate thread.
If required, refer to the URL of this page in your new post.


Next : Dotnet
Previous : string
Return to Discussion Forum
Post New Message
Category: .NET

Related Messages



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use