Click here to Skip to main content
16,005,339 members
Home / Discussions / C#
   

C#

 
GeneralRe: Commenting Code Pin
Heath Stewart13-Apr-04 3:05
protectorHeath Stewart13-Apr-04 3:05 
GeneralCrystal reports and C# Pin
MeterMan12-Apr-04 18:30
MeterMan12-Apr-04 18:30 
GeneralRe: Crystal reports and C# Pin
Heath Stewart13-Apr-04 3:00
protectorHeath Stewart13-Apr-04 3:00 
GeneralDataGrid and threading Pin
viettrai12-Apr-04 11:55
viettrai12-Apr-04 11:55 
GeneralRe: DataGrid and threading Pin
quilkin12-Apr-04 21:04
quilkin12-Apr-04 21:04 
GeneralRe: DataGrid and threading Pin
viettrai13-Apr-04 10:58
viettrai13-Apr-04 10:58 
GeneralNT Service Monitor Pin
Makover12-Apr-04 9:33
Makover12-Apr-04 9:33 
GeneralRe: NT Service Monitor Pin
Heath Stewart12-Apr-04 10:11
protectorHeath Stewart12-Apr-04 10:11 
Extend ServiceBase and create your service if you haven't already. Add an Installer derivative that uses the ServiceInstaller and ServiceProcessInstaller (both optionally if you choose to have another installer do it) that installs it.

When you install the service, you must have it log in as a specific user that has an associated desktop as well as "Log in locally" rights, or install it to run under LocalSystem (SYSTEM) and enabled desktop integration.

Your monitor then can use the ServiceController to communicate with it on a basic level and receive notifications from the service, or you could use named pipes (no support in the .NET FCL), sockets, .NET Remoting (optimal between AppDomains), etc.

Search CodeProject. I'd bet there's a couple examples of something similar, otherwise I'm sure you'll find examples if you google[^].

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: NT Service Monitor Pin
Makover12-Apr-04 10:48
Makover12-Apr-04 10:48 
GeneralRe: NT Service Monitor Pin
Heath Stewart12-Apr-04 10:51
protectorHeath Stewart12-Apr-04 10:51 
GeneralRe: NT Service Monitor Pin
Makover12-Apr-04 11:48
Makover12-Apr-04 11:48 
QuestionHave you ever used Buffer and/or BitConverter? Pin
Nathan Ridley12-Apr-04 9:18
Nathan Ridley12-Apr-04 9:18 
AnswerRe: Have you ever used Buffer and/or BitConverter? Pin
Nick Parker12-Apr-04 9:38
protectorNick Parker12-Apr-04 9:38 
AnswerRe: Have you ever used Buffer and/or BitConverter? Pin
Jeff Varszegi12-Apr-04 9:49
professionalJeff Varszegi12-Apr-04 9:49 
QuestionOpen source/free asp.net datagrid component? Pin
yetanotherchris12-Apr-04 8:32
yetanotherchris12-Apr-04 8:32 
AnswerRe: Open source/free asp.net datagrid component? Pin
Heath Stewart12-Apr-04 8:39
protectorHeath Stewart12-Apr-04 8:39 
GeneralRe: Open source/free asp.net datagrid component? Pin
yetanotherchris12-Apr-04 9:08
yetanotherchris12-Apr-04 9:08 
GeneralRe: Open source/free asp.net datagrid component? Pin
Heath Stewart12-Apr-04 10:06
protectorHeath Stewart12-Apr-04 10:06 
GeneralStopping all threads when program exits Pin
Flack12-Apr-04 8:00
Flack12-Apr-04 8:00 
GeneralRe: Stopping all threads when program exits Pin
Stefan Troschuetz12-Apr-04 8:16
Stefan Troschuetz12-Apr-04 8:16 
GeneralRe: Stopping all threads when program exits Pin
Heath Stewart12-Apr-04 8:35
protectorHeath Stewart12-Apr-04 8:35 
GeneralRe: Stopping all threads when program exits Pin
Jeff Varszegi12-Apr-04 9:13
professionalJeff Varszegi12-Apr-04 9:13 
GeneralCode-Portability Pin
Stefan Troschuetz12-Apr-04 7:48
Stefan Troschuetz12-Apr-04 7:48 
GeneralRe: Code-Portability Pin
Heath Stewart12-Apr-04 8:31
protectorHeath Stewart12-Apr-04 8:31 
GeneralRe: Code-Portability Pin
Stefan Troschuetz12-Apr-04 10:38
Stefan Troschuetz12-Apr-04 10:38 

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.