Click here to Skip to main content
15,893,588 members
Home / Discussions / C#
   

C#

 
GeneralRe: vbscript to c# Pin
Pete O'Hanlon11-Jun-13 2:59
mvePete O'Hanlon11-Jun-13 2:59 
GeneralRe: vbscript to c# Pin
fernando_moca11-Jun-13 3:09
fernando_moca11-Jun-13 3:09 
GeneralRe: vbscript to c# Pin
Pete O'Hanlon11-Jun-13 3:19
mvePete O'Hanlon11-Jun-13 3:19 
GeneralRe: vbscript to c# Pin
fernando_moca11-Jun-13 3:26
fernando_moca11-Jun-13 3:26 
QuestionNeed help regarding developing windows service Pin
Tridip Bhattacharjee10-Jun-13 9:18
professionalTridip Bhattacharjee10-Jun-13 9:18 
AnswerRe: Need help regarding developing windows service Pin
Richard Deeming10-Jun-13 9:27
mveRichard Deeming10-Jun-13 9:27 
GeneralRe: Need help regarding developing windows service Pin
Ron Nicholson10-Jun-13 9:52
professionalRon Nicholson10-Jun-13 9:52 
AnswerRe: Need help regarding developing windows service Pin
Rob Philpott10-Jun-13 10:09
Rob Philpott10-Jun-13 10:09 
There are few ways to tackle this sort of thing.

Firstly, the Window Event Viewer will normally log when users log in without you doing anything. From command prompt type 'eventvwr' and navigate to security. In Task Category look for log on. You'll need admin rights for this. That may give you enough information that you don't need to create a Windows Service.

The start override is called when the Service starts, and that will usually be when the computer starts when set to automatic, of when explicitly started when set to manual.

If you do go ahead with the service, I would investigate programmatically getting events from the Event Log - there probably will be a hook where you can receive them but I don't know off the top of my head.

A simple approach might be to create a little console app that sends an email and make it run when you log in - like things like Skype do. It's a case of adding an entry in the registry in the 'run' section of windows.
Regards,
Rob Philpott.

AnswerRe: Need help regarding developing windows service Pin
Abhinav S10-Jun-13 20:15
Abhinav S10-Jun-13 20:15 
QuestionHow to draw 3D electron model around Atom using XNA?? Pin
nada 101510-Jun-13 0:59
nada 101510-Jun-13 0:59 
AnswerRe: How to draw 3D electron model around Atom using XNA?? Pin
Richard MacCutchan10-Jun-13 1:48
mveRichard MacCutchan10-Jun-13 1:48 
GeneralRe: How to draw 3D electron model around Atom using XNA?? Pin
nada 101510-Jun-13 1:54
nada 101510-Jun-13 1:54 
GeneralRe: How to draw 3D electron model around Atom using XNA?? Pin
Richard MacCutchan10-Jun-13 2:02
mveRichard MacCutchan10-Jun-13 2:02 
GeneralhI How Can i Expand Window? Pin
SgtSS9-Jun-13 23:41
SgtSS9-Jun-13 23:41 
AnswerRe: hI How Can i Expand Window? Pin
Abhinav S10-Jun-13 0:06
Abhinav S10-Jun-13 0:06 
GeneralRe: hI How Can i Expand Window? Pin
SgtSS10-Jun-13 14:31
SgtSS10-Jun-13 14:31 
QuestionRun RegisterStartupScript multiple times in c# Pin
Jun Xian9-Jun-13 22:05
Jun Xian9-Jun-13 22:05 
Questionstuck in (dll registration in system32 by c#) Pin
Sneha Bisht9-Jun-13 21:01
Sneha Bisht9-Jun-13 21:01 
AnswerRe: stuck in (dll registration in system32 by c#) Pin
Abhinav S9-Jun-13 21:47
Abhinav S9-Jun-13 21:47 
AnswerRe: stuck in (dll registration in system32 by c#) Pin
Dave Kreskowiak10-Jun-13 1:34
mveDave Kreskowiak10-Jun-13 1:34 
Questionc# Pin
zofi519-Jun-13 20:16
zofi519-Jun-13 20:16 
AnswerRe: c# Pin
Abhinav S9-Jun-13 21:49
Abhinav S9-Jun-13 21:49 
AnswerRe: c# Pin
bfis10813710-Jun-13 0:38
bfis10813710-Jun-13 0:38 
AnswerRe: c# Pin
OriginalGriff10-Jun-13 9:09
mveOriginalGriff10-Jun-13 9:09 
QuestionHow to deal with environment variables and non admin users Pin
bfis1081379-Jun-13 2:08
bfis1081379-Jun-13 2:08 

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.