|
I'll assume that you're talking about managed code here. Regular applications have an entry point that gets called when they are run. Services, on the other hand, may not be started by double clicking them because they typically don't have that standard application entry point. Instead, they have an entry point that the service control manager (SCM) understands. The SCM is what starts and stops service processes.
It's fairly easy to convert one to the other. However, does your app have a user interface (this even includes message boxes)? If so, it's not a good candidate to run as a service.
If you want to see how to make a service, there's a good template service project in VS. There's also a good article here[^] on how to make a version of a service that can be debugged.
|
|
|
|
|
Thnks for comment
But what im trying to do is that im writing a program (say a program which never allows Solitare application to execute as im lab Administrator) but i want that program to be loaded as service for 2 reasons:
1. I dont want it to be enlisted in Task Manager
2. I want to learn to create services and convert process to service and vice-versa
hoping some reply soon
pitchu
|
|
|
|
|
This is better handled by Group Policy, not an application. You can't stop an .EXE from launching, you can only scan the Process list once in a while and quit the app if you find it.
wasim ahmad bhat wrote: 1. I dont want it to be enlisted in Task Manager
Services don't hide from Task Manager. There's nothing you can do to hide from the Task List.
wasim ahmad bhat wrote: 2. I want to learn to create services and convert process to service and vice-versa
Then learn how to write Console apps. You can use them to test the main code of your service, then, if done properly, you can write the service manager code around that.
There really isn't any path to "convert" an app to a service or the other way around. Both types of applications are purpose written to be what they are, and do not lend themselves to be "converted" as you put it.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Agreed I have 2 search the process list and quit the application
Thanks for letting me know that there is no way to convert service to process and vice-versa
Further, Im confused with those services loaded by svchost.exe which is not shown by task manager. im trying to do the same thing but how i dont know.
Can u post some little code in VB6(preferably as im in fine touch now) or VC++ of the SERVICE and a methode to invoke it
pitchu
|
|
|
|
|
VB6 can't make a service. It can make a normal Windows app, but it has to be written specially to be able to run LIKE a service using a 3rd party control. You can find out more here[^].
SVCHOST is a generic service "shell", or host process, that loads and executes services in .DLL files. A single instance of SVCHOST can host multiple services at the same time. These types of services you would have to write in VC++.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Lots of Thanks
A Nice and Resourceful link Hats OFF
It will take me a week to purely understand the content
Stay tuned
Again LOTS OF THANKS
By the way would u like 2 help me in my older question
Difference in various types of DLLs
as i hav no reply for that yet
pitchu
|
|
|
|
|
Anybody knows WebFOCUS report concept. Please Provide me your details (E-mail ID). Otherwise, Please send me your contact details to my below mail ID
mookiahganesh@gmail.com
Thanks in advance......
Ganesh
|
|
|
|
|
|
I whant to know if in sql it exist a function to get the month base on fiscal year. I can program it, but a solution is already exist why reinventing the whell.
Stephanm
|
|
|
|
|
This forum is for article suggestions.
"I've seen more information on a frickin' sticky note!" - Dave Kreskowiak
|
|
|
|
|
how can i make mp3 palyer support rm (real media)
Thank you very much.
|
|
|
|
|
any one plz sujest me link for free online material
for CCNA and MCSE...
thanks in advance
RST
|
|
|
|
|
|
hey u can choose sybex , and boson network
or semsim is an free ware
|
|
|
|
|
iwant to something about distributed systems and its application
thanx
If I HaD OnE sInglE wIsh IwIll gO back for thE fIrst tIme i sEE yOu
|
|
|
|
|
hi guys,
i'm having an ASPX Form where i placed the
one Label control to display the name of the student
five textboxes to display thier corresponding Marks,
when i click a button it has to show first student name and his marks
when i click next it has to show next student name and his marks
i have to do the task through Ajax How to do that
pls any one help me
-- modified at 5:03 Saturday 28th October, 2006
|
|
|
|
|
I would start by posting this on the ASP.NET forum, rather than this one which is for article ideas.
Arthur Dent - "That would explain it. All my life I've had this strange feeling that there's something big and sinister going on in the world."
Slartibartfast - "No. That's perfectly normal paranoia. Everybody in the universe gets that."
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
how abot looking at the MS ajax website
loads of samples there
"a fool will not learn from a wise man, but a wise man will learn from a fool"
"It is hard to fail, but it is worse never to have tried to succeed." - Theodore Roosevelt
"Success is going from failure to failure without losing your enthusiasm." - Winston Churchill
My Website || My Blog
|
|
|
|
|
Hi Experts
How MAPI function are helpful to create a .pst programatically.
MAPI function are new experience for me. I am new user of MAPI.
Actually i am working on repair a pst file ,if it got currpted.
SO please tell me some solution and if possible some example.
|
|
|
|
|
Hi,
Can anyone guide me with articles on carets for VC++
Thanks
Prithaa
|
|
|
|
|
Hi Experts
I want to about Microsoft Outlook's .pst file. Where can i find its format and other information related.
parshant
|
|
|
|
|
I'm looking for some DOS/Win32 software that will emulate a Bell 103 and ITU-T v.21 modem that uses a WAVE format file or a computer's sound card for the modulation/demodulation audio signal output/input. Any known software or help on how to do this would be appreciated.
Also, If you want some compensation for writting some code like this, check out the SEEK300 Coding Competition 2006:
The SEEK300 Coding Competition 2006 is now on! It is hosted by oblyvaeon.com and Everyone who enters will receive at least 2 prizes (see contest details). Enter soon; the prizes will ship in time for Christmas, Yule, The Holidays, X-day, or whatever politically correct term you choose to call it. Even if you're not a big oblyvaeon fan, check out the "Robots are stealing my luggage" shirt for a prize. The objective of this contest is to code a Bell 103/ITU-T v.21 300 baud modem emulator which will operate on a Win32 platform.
http://www.oblyvaeon.com/seek300.html
If you know someone who might be interested in this, please let them know!
|
|
|
|
|
Carried from OT Core2 thread: http://www.codeproject.com/lounge.asp?msg=1721789#xx1721789xx[^]
I have to be careful what I write in so far as articles go, because of issues at work. But I don't think multi-threaded issues are a direct association with my work, at least not so much as graphics would be.
I have been writing multi-threaded asynch/synch and even massively parallel code for about 15 years now, but it is just "background" (if you forgive the pun) to my primary job. Is there something specific you think would benefit Code-project members?
_________________________
Asu no koto o ieba, tenjo de nezumi ga warau.
Talk about things of tomorrow and the mice in the ceiling laugh. (Japanese Proverb)
|
|
|
|
|
There are tons of articles how to work with multiple threads, its traps and pitfals, etc.
However, there's next to no applied information on how to design and implement algorithms that scale well under parallelization. I'm exactly loking for that.
My motivation for asking: I think parellel execution will be Moores Law of the next decade(s). Chip density hits physical limits, and while alternative approaches are "in the thinking", they'll take many years to ripen and some more to become a mass produced commodity. In the meantime, multiple CPUs (virtual or real) is all we will get.
edit: the & - & - reply bug has been fixed! wowsy! - edit3 no it wasn't
edit2: my skills of writing understandable english are deteriorating quickly. Please if you get a chanse put some flowrs on Algernons grave in the bak yard...
-- modified at 16:28 Saturday 21st October, 2006
We are a big screwed up dysfunctional psychotic happy family - some more screwed up, others more happy, but everybody's psychotic joint venture definition of CP
Linkify! || Fold With Us! || sighist
|
|
|
|
|
peterchen wrote: there's next to no applied information on how to design and implement algorithms that scale well under parallelization.
as in my parallel version of a builder design pattern designed to run multiple builders in parallel and scale based on work given?
_________________________
Asu no koto o ieba, tenjo de nezumi ga warau.
Talk about things of tomorrow and the mice in the ceiling laugh. (Japanese Proverb)
|
|
|
|