Click here to Skip to main content
15,888,610 members
Home / Discussions / C#
   

C#

 
GeneralRe: DateTime Operation Pin
Mazdak16-Apr-03 4:42
Mazdak16-Apr-03 4:42 
GeneralLoad File Pin
Mazdak16-Apr-03 2:48
Mazdak16-Apr-03 2:48 
GeneralRe: Load File Pin
Chris Austin16-Apr-03 5:19
Chris Austin16-Apr-03 5:19 
GeneralRe: Load File Pin
Mazdak16-Apr-03 8:15
Mazdak16-Apr-03 8:15 
GeneralCheck if a windows service is installed Pin
AndyLatham16-Apr-03 2:20
AndyLatham16-Apr-03 2:20 
GeneralRe: Check if a windows service is installed Pin
Mazdak16-Apr-03 2:52
Mazdak16-Apr-03 2:52 
GeneralRe: Check if a windows service is installed Pin
AndyLatham16-Apr-03 4:06
AndyLatham16-Apr-03 4:06 
GeneralRe: Check if a windows service is installed Pin
Mazdak16-Apr-03 4:42
Mazdak16-Apr-03 4:42 
Well,When I want to do that I just look up in ServiceController[] which used GetServices().I look just check each ServiceName property for ServiceController[] and if its there so it is installed.Its not that muck hard or caused any expetion.And I can get the status of each service by Status prperty.

Anyway,You can use QueryServiceStatus in C# too.You can use it like the way you use other win32 functions in C# but thats very hard and boring.You can write a DLL with MC++(I GUESS you can do that with VB.NET too) and do this jon in it and then it is REALLY easy to reuse it in C#.If you want to do it in this way I can help you more.

I don't think you have any other choices,there is nothing like that in .Net framework as much as I know.

HTH

Mazy

"And the carpet needs a haircut, and the spotlight looks like a prison break
And the telephone's out of cigarettes, and the balcony is on the make
And the piano has been drinking, the piano has been drinking...not me...not me
-Tom Waits

GeneralRe: Check if a windows service is installed Pin
AndyLatham16-Apr-03 5:04
AndyLatham16-Apr-03 5:04 
GeneralRe: Check if a windows service is installed Pin
sludgenz29-Oct-08 16:22
sludgenz29-Oct-08 16:22 
GeneralRe: Check if a windows service is installed Pin
AnnDunbar19-Jan-09 4:55
AnnDunbar19-Jan-09 4:55 
GeneralTerminate C# app at system shutdown Pin
pahlsson15-Apr-03 22:19
pahlsson15-Apr-03 22:19 
GeneralRe: Terminate C# app at system shutdown Pin
perlmunger16-Apr-03 6:07
perlmunger16-Apr-03 6:07 
GeneralRe: Terminate C# app at system shutdown Pin
pahlsson16-Apr-03 6:10
pahlsson16-Apr-03 6:10 
GeneralRe: Terminate C# app at system shutdown Pin
perlmunger16-Apr-03 6:56
perlmunger16-Apr-03 6:56 
GeneralRe: Terminate C# app at system shutdown Pin
Jon Newman16-Apr-03 6:31
Jon Newman16-Apr-03 6:31 
GeneralRe: Terminate C# app at system shutdown Pin
James T. Johnson16-Apr-03 7:12
James T. Johnson16-Apr-03 7:12 
GeneralRe: Terminate C# app at system shutdown Pin
pahlsson16-Apr-03 7:17
pahlsson16-Apr-03 7:17 
GeneralRe: Terminate C# app at system shutdown Pin
pahlsson16-Apr-03 7:21
pahlsson16-Apr-03 7:21 
QuestionDirectory Dialog Box?? Pin
bania15-Apr-03 15:17
bania15-Apr-03 15:17 
AnswerRe: Directory Dialog Box?? Pin
Chris Austin15-Apr-03 18:54
Chris Austin15-Apr-03 18:54 
AnswerRe: Directory Dialog Box?? Pin
chito15-Apr-03 22:09
chito15-Apr-03 22:09 
AnswerRe: Directory Dialog Box?? Pin
Mazdak16-Apr-03 2:59
Mazdak16-Apr-03 2:59 
GeneralChange title bar color (or menu) Pin
mirano15-Apr-03 13:59
mirano15-Apr-03 13:59 
GeneralRe: Change title bar color (or menu) Pin
Chris Jobson15-Apr-03 23:06
Chris Jobson15-Apr-03 23:06 

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.