The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.
|
 |
|
Dev Shed Forums
> Operating Systems
> Windows Help
|
Services
Discuss Services in the Windows Help forum on Dev Shed. Services Windows Help forum discussing tips, tricks, configurations, and more. Microsoft Windows is one of the most popular operating systems due to its ease of use.
|
|
 |
|
|
|
|

Dev Shed Forums Sponsor:
|
|
|

October 1st, 2002, 09:45 AM
|
|
Contributing User
|
|
Join Date: Dec 2001
Posts: 287
Time spent in forums: 6 h 57 m 7 sec
Reputation Power: 12
|
|
|
Services
Can you add a windows service?
I have looked everywhere, and I cannot find an option to add a windows service. Well...I obviously havnt looked everywhere because I know programs like proxy+ install themselves as services. But how do i do it manually?
|

October 5th, 2002, 06:59 AM
|
|
Contributing User
|
|
Join Date: Oct 2000
Location: Back in the real world.
|
|
|
what do you want to add? if you install apache or mysql eg, they appear automagically in the services list.
if you want other MS-services, go to "control panel / software / windows setup"
if you want to make your own service, youŽll have to learn a lot about programming and the windows API...
|

October 5th, 2002, 07:50 AM
|
|
Contributing User
|
|
Join Date: Dec 2001
Posts: 287
Time spent in forums: 6 h 57 m 7 sec
Reputation Power: 12
|
|
|
dam...what do you mean? Are services added in the actual VB code or C++ code ot what?
|

October 5th, 2002, 08:12 AM
|
|
Contributing User
|
|
Join Date: Oct 2000
Location: Back in the real world.
|
|
yes. and no. afaik services need to call special functions to become services (called similar to "register_service_process()" - canŽt remember right now and too lazy to look it up, but i will if you ask me to...)
then they need to make some registry entries (this is probably what you are looking for), eg. in
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services to make it possible to start them via "Administration/Services"
and (i am just guessing now!) services probably have to be COM-servers or something similar and need to register a global GUID somewhere (to be done by your installer).
i never did this before, so you might want to ignore my answer(s) and search on http://msdn.microsoft.com yourself.
Last edited by M.Hirsch : October 5th, 2002 at 08:14 AM.
|

October 5th, 2002, 08:19 AM
|
|
Contributing User
|
|
Join Date: Dec 2001
Posts: 287
Time spent in forums: 6 h 57 m 7 sec
Reputation Power: 12
|
|
|
Thanks M. Hirsch!
No need to look stuff up, i was just wondering, now i kind of know what its all about. Cheers.
|

October 5th, 2002, 03:40 PM
|
|
|
|
I have written services in VB (not supported by MS though) that use the ntsvc.ocx. The application handles command-line parameters to install/uninstall itself. If you're really interested reply to the post and I can find some examples.... or just go to the msdn site and search for services.
|
Developer Shed Advertisers and Affiliates
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|