Click here to Skip to main content
15,899,679 members
Home / Discussions / C#
   

C#

 
QuestionServer Connection Check Pin
Syed Shahid Hussain14-Aug-07 23:10
Syed Shahid Hussain14-Aug-07 23:10 
AnswerRe: Server Connection Check Pin
Rocky#15-Aug-07 1:47
Rocky#15-Aug-07 1:47 
GeneralRe: Server Connection Check Pin
Syed Shahid Hussain15-Aug-07 18:22
Syed Shahid Hussain15-Aug-07 18:22 
Questionhow to bind a text file to check boxes Pin
Daniel_Logan14-Aug-07 22:51
Daniel_Logan14-Aug-07 22:51 
AnswerRe: how to bind a text file to check boxes Pin
Christian Graus15-Aug-07 0:19
protectorChristian Graus15-Aug-07 0:19 
GeneralRe: how to bind a text file to check boxes Pin
Daniel_Logan15-Aug-07 0:22
Daniel_Logan15-Aug-07 0:22 
GeneralRe: how to bind a text file to check boxes Pin
Christian Graus15-Aug-07 0:53
protectorChristian Graus15-Aug-07 0:53 
QuestionQustion on NT Service - Logged in user Pin
malharone14-Aug-07 22:19
malharone14-Aug-07 22:19 
I thought I'd get lucky with Google on this one, but unfortuantely didn't find anything. Or may be i was searching using the wrong keywords. (I'd put my bet on the latter)

Preamble:
I created a hello-world NT service in C# (nothing fancy here -- no WCF involved) and using installutil I'm able to deploy the service and then eventually using net start, I'm able to run the service as well. The service is running under "local system" account. The service has a timer, which ticks, say every 1 minute.

Question:
During the timer tick event handler, I'd like to find out a) if there is ANY user logged in at this time and b) if so, what is the name of the user who is using the machine?
I'm not interested to know which account is being used to run the NT service.


I tried System.Enviornment.UserName but that doesn't return what I need. It simply returns "user name of the person who started the current thread.".
(http://msdn2.microsoft.com/en-us/library/system.environment.username.aspx[^])


I hope to find a trivial solution to a trivial problem.


Thanks,

- Malhar
Question[Message Deleted] Pin
sw_tech12314-Aug-07 20:21
sw_tech12314-Aug-07 20:21 
AnswerRe: How to give an input to exe file through program? Pin
Malcolm Smart14-Aug-07 21:12
Malcolm Smart14-Aug-07 21:12 
QuestionRemoving items from string Array Pin
meeram39514-Aug-07 20:19
meeram39514-Aug-07 20:19 
AnswerRe: Removing items from string Array Pin
weic_tsubusa14-Aug-07 20:30
weic_tsubusa14-Aug-07 20:30 
QuestionThen skip this file God damn it!! [modified] Pin
Muammar©14-Aug-07 20:12
Muammar©14-Aug-07 20:12 
AnswerRe: Then skip this file God damn it!! Pin
Malcolm Smart14-Aug-07 21:08
Malcolm Smart14-Aug-07 21:08 
GeneralRe: Then skip this file God damn it!! Pin
Muammar©14-Aug-07 21:38
Muammar©14-Aug-07 21:38 
AnswerRe: Then skip this file ! Pin
Luc Pattyn15-Aug-07 3:17
sitebuilderLuc Pattyn15-Aug-07 3:17 
Questionmp3 player with equalizer... [modified] Pin
Life as a Coder14-Aug-07 19:15
Life as a Coder14-Aug-07 19:15 
QuestionOracle/ .NET connection Pin
.NET4Ever14-Aug-07 17:49
.NET4Ever14-Aug-07 17:49 
AnswerRe: Oracle/ .NET connection Pin
Christian Graus14-Aug-07 19:16
protectorChristian Graus14-Aug-07 19:16 
AnswerRe: Oracle/ .NET connection Pin
J4amieC14-Aug-07 22:07
J4amieC14-Aug-07 22:07 
AnswerRe: Oracle/ .NET connection Pin
.NET4Ever15-Aug-07 4:15
.NET4Ever15-Aug-07 4:15 
QuestionHow to create shape file in C# Pin
ssliew14-Aug-07 17:36
ssliew14-Aug-07 17:36 
AnswerRe: How to create shape file in C# Pin
Drew Stainton14-Aug-07 18:01
Drew Stainton14-Aug-07 18:01 
GeneralRe: How to create shape file in C# Pin
ssliew14-Aug-07 18:12
ssliew14-Aug-07 18:12 
GeneralRe: How to create shape file in C# Pin
Drew Stainton14-Aug-07 18:27
Drew Stainton14-Aug-07 18:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.