Jump to content
Tuts 4 You

Service is runnig


ragdog

Recommended Posts

Posted

Hi

Can i get the status of a service (if closed or if running)

Thanks

Posted

This example shows how to enumerate services and get information about them, it is coded in Visual Basic but uses Win32 API, so converting it shouldn't present a problem.
/>http://www.devx.com/vb2themax/Tip/19044

This example shows how to get the status of a service and then 2 wrappers to show if a service is running or not.

Although its Delphi, its using Win32 API so coding it in assembler shouldn't present a problem.
/>http://www.chami.com/tips/delphi/031498d.html

But this is only if you mean Windows services. Your post isn't very descriptive or informative, so i have guessed that you want to check the status of a Windows service via code. Four-F Driver Kit may be useful also, it has assembler examples of how to interface with the SCManager

HR,

Ghandi

Posted (edited)

Thanks ghandi

For this Delphi link it works

Edited by ragdog

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...