| View previous topic :: View next topic |
| Author |
Message |
JRoza Contributor


Joined: 17 Aug 2003 Posts: 182 Location: Netherlands
|
Posted: Tue Oct 10, 2006 10:06 am Post subject: How to find Windows services via API |
|
|
Does anyone know how to determine if a certain Windows service is installed and/or active?
What Windows API can find installed services and where can I find any documentation about it?
I ask this for a friend who's programming in PowerBasic and is in need for such an API or routine.
Since I know there are some very bright persons who know a lot about API calls on this forum I drop my question here.
Thanks!
Jan |
|
| Back to top |
|
 |
Hooligan VDS Developer


Joined: 28 Oct 2003 Posts: 480 Location: California
|
|
| Back to top |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
|
| Back to top |
|
 |
Aslan Valued Contributor


Joined: 31 May 2001 Posts: 589 Location: Memphis, TN USA
|
Posted: Wed Oct 11, 2006 12:44 am Post subject: |
|
|
Or on a server or if SC.exe is on your PC
| Code: | runh cmd /c sc query,pipe
info @pipe() |
Or wait fo GadgetX to someday release  |
|
| Back to top |
|
 |
JRoza Contributor


Joined: 17 Aug 2003 Posts: 182 Location: Netherlands
|
Posted: Wed Oct 11, 2006 5:52 am Post subject: |
|
|
Thanks guys
I knew I could rely on you guys to come up with something
That service dll was exacty what he was looking for.
Gadget might work too in PowerBasic but is overkill since only the service lookup is needed and he needs it now
Jan |
|
| Back to top |
|
 |
vdsalchemist Admin Team

Joined: 23 Oct 2001 Posts: 1448 Location: Florida, USA
|
Posted: Tue Nov 14, 2006 1:30 am Post subject: |
|
|
Jan,
This is possible with GadgetX and I have a demo up on my website showing you how to use WMI to save a list of the current services and their current state. It saves this list to an Excel SpreadSheet. WMI and Excel are needed for the demo to work however Excel is optional.
Have fun  _________________ Home of
Give VDS a new purpose!
 |
|
| Back to top |
|
 |
|