forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


How to find Windows services via API

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
JRoza
Contributor
Contributor


Joined: 17 Aug 2003
Posts: 182
Location: Netherlands

PostPosted: Tue Oct 10, 2006 10:06 am    Post subject: How to find Windows services via API Reply with quote

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
View user's profile Send private message Visit poster's website
Hooligan
VDS Developer
VDS Developer


Joined: 28 Oct 2003
Posts: 480
Location: California

PostPosted: Tue Oct 10, 2006 12:12 pm    Post subject: Reply with quote

Check out this post:

http://forum.vdsworld.com/viewtopic.php?t=3410&start=0&postdays=0&postorder=asc&highlight=service

Hooligan

_________________
Hooligan

Why be normal?
Back to top
View user's profile Send private message
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Tue Oct 10, 2006 6:05 pm    Post subject: Reply with quote

Or take a look at the console command "net start" Smile

Code:
runh cmd /c net start,pipe
info @pipe()

_________________
[ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial!
Back to top
View user's profile Send private message
Aslan
Valued Contributor
Valued Contributor


Joined: 31 May 2001
Posts: 589
Location: Memphis, TN USA

PostPosted: Wed Oct 11, 2006 12:44 am    Post subject: Reply with quote

Or on a server or if SC.exe is on your PC Wink

Code:
runh cmd /c sc query,pipe
info @pipe()


Or wait fo GadgetX to someday release Rolling Eyes
Back to top
View user's profile Send private message Send e-mail
JRoza
Contributor
Contributor


Joined: 17 Aug 2003
Posts: 182
Location: Netherlands

PostPosted: Wed Oct 11, 2006 5:52 am    Post subject: Reply with quote

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 Wink

Jan
Back to top
View user's profile Send private message Visit poster's website
vdsalchemist
Admin Team


Joined: 23 Oct 2001
Posts: 1448
Location: Florida, USA

PostPosted: Tue Nov 14, 2006 1:30 am    Post subject: Reply with quote

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 Cool

_________________
Home of

Give VDS a new purpose!
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group