1. Heribert Goeckel
  2. PowerBuilder
  3. Monday, 1 July 2024 18:06 PM UTC

Hello

Two questions about Windows services:
First: how to determine whether a service has been set up/installed.
Second: how do you determine the status of a Windows service. e.g.  running, paused, stopped.

Thanks

Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Monday, 1 July 2024 20:04 PM UTC
  2. PowerBuilder
  3. # 1

Hi Heribert;

  For services that are running, you can just walk the O/S task control blocks to get a list of any service, driver, notification, etc that is running. You can check out my PB App & code that does that ...

https://chrispollach.blogspot.com/2024/06/explorer.html

  For the Windows apps that "could" be running as a service, you should be able to get a list from here in the Registry...

https://learn.microsoft.com/en-us/windows-hardware/drivers/install/hklm-system-currentcontrolset-services-registry-tree

HTH 

Regards ... Chris 

Comment
There are no comments made yet.
John Fauss Accepted Answer Pending Moderation
  1. Monday, 1 July 2024 19:24 PM UTC
  2. PowerBuilder
  3. # 2

Hi, Heribert -

I've not used them, but there are several Windows API functions and structures that are available for working with Windows Services:

    https://learn.microsoft.com/en-us/windows/win32/services/service-reference

Best regards, John

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.