Windows Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsOperating SystemsWindows Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old October 1st, 2002, 09:45 AM
dsm56 dsm56 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2001
Posts: 287 dsm56 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
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?

Reply With Quote
  #2  
Old October 5th, 2002, 06:59 AM
M.Hirsch M.Hirsch is offline
Contributing User
Dev Shed God 1st Plane (5500 - 5999 posts)
 
Join Date: Oct 2000
Location: Back in the real world.
Posts: 5,966 M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Month 2 Days 52 m 24 sec
Reputation Power: 189
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...
__________________
--
Manuel Hirsch - Linux, FreeBSD, programming, administration articles, tutorials and more.

Reply With Quote
  #3  
Old October 5th, 2002, 07:50 AM
dsm56 dsm56 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2001
Posts: 287 dsm56 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
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?

Reply With Quote
  #4  
Old October 5th, 2002, 08:12 AM
M.Hirsch M.Hirsch is offline
Contributing User
Dev Shed God 1st Plane (5500 - 5999 posts)
 
Join Date: Oct 2000
Location: Back in the real world.
Posts: 5,966 M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Month 2 Days 52 m 24 sec
Reputation Power: 189
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.

Reply With Quote
  #5  
Old October 5th, 2002, 08:19 AM
dsm56 dsm56 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2001
Posts: 287 dsm56 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
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.

Reply With Quote
  #6  
Old October 5th, 2002, 03:40 PM
hedge hedge is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Apr 2002
Posts: 693 hedge User rank is Sergeant (500 - 2000 Reputation Level)hedge User rank is Sergeant (500 - 2000 Reputation Level)hedge User rank is Sergeant (500 - 2000 Reputation Level)hedge User rank is Sergeant (500 - 2000 Reputation Level)hedge User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 5 Days 4 h 5 m 20 sec
Reputation Power: 25
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.

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsWindows Help > Services

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap