What do you know, I just ran across this today

http://www.codeproject.com/system/xyntservice.asp


Summary [vince: note I am not the I in the following]:

I have included with this article the source code for a simple NT
Service program that can start and shutdown other programs. All you need
to do is install this service and modify a .ini file. Here are the
advantages of using this simple NT service

It can start as many programs as you want. 

The started programs behave like NT services (i.e. they will be running
in the background without the user having to login to the machine). 

A user cannot kill the programs started by this service without proper
privilege (unless the machine is shutdown, of course). 

You can test and debug your programs outside of the NT Service. For
example, you can run your programs in the DevStudio debugger, step into
the source code to find the bugs, etc. When it is "bug free", you deploy
it in production, starting it from the NT Service. 

Regards, 
J. Vince Pacella / OOCL Chicago 
Cell 773-454-8683 Fax - 773-867-5050 

Cargo Tracking Online at: 
www.cargosmart.com 

 

> -----Original Message-----
> From: Unmoderated discussion of advanced .NET topics. 
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> Andy Patterson
> Sent: Friday, May 13, 2005 5:28
> To: [email protected]
> Subject: Re: [ADVANCED-DOTNET] Launching Apps From Windows Service
> 
> Thanks for the 'userinit.exe' suggestion, I hadn't thought of 
> it. I'll check it out and see how it goes and definitely have 
> a back door in there!
> I'm testing all this on a WinXP Virtual PC so pretty safe 
> anyhow. I'll report back ;-)
> 
> Cheers
> Andy
> 
> ===================================
> This list is hosted by DevelopMentor(r)  http://www.develop.com
> 
> View archives and manage your subscription(s) at 
> http://discuss.develop.com
> 
> 


IMPORTANT NOTICE
Email from OOCL is confidential and may be legally privileged.  If it is not 
intended for you, please delete it immediately unread.  The internet cannot 
guarantee that this communication is free of viruses, interception or 
interference and anyone who communicates with us by email is taken to accept 
the risks in so doing.  Without limitation, OOCL and its affiliates accept no 
liability whatsoever and howsoever arising in connection with the use of this 
email.  Under no circumstances shall this email constitute a binding agreement 
to carry or for provision of carriage services by OOCL, which is subject to the 
availability of carrier's equipment and vessels and the terms and conditions of 
OOCL's standard bill of lading which is also available at http://www.oocl.com.

===================================
This list is hosted by DevelopMentor�  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to