C#

Moderators: None (Apply to moderate this forum)
Number of threads: 2722
Number of posts: 5749

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
User name of user running a C# application Posted by paulzeye on 29 Jun 2004 at 12:21 PM
This message was edited by paulzeye at 2004-6-29 12:22:23

I have a c# program and I need to be able to determine the NT User ID of the person running the program from within the program, any ideas on how to do this. Thanks.
Report
Re: User name of user running a C# application Posted by paulzeye on 30 Jun 2004 at 10:49 AM
: This message was edited by paulzeye at 2004-6-29 12:22:23

: I have a c# program and I need to be able to determine the NT User ID of the person running the program from within the program, any ideas on how to do this. Thanks.
:



In case anybody else wants to know you can find it in the registry at
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer

Report
Re: User name of user running a C# application Posted by paulzeye on 30 Jun 2004 at 1:04 PM
: This message was edited by paulzeye at 2004-6-29 12:22:23

: I have a c# program and I need to be able to determine the NT User ID of the person running the program from within the program, any ideas on how to do this. Thanks.
:

found another way... use System.Environment.UserName



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.