Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
DotNet
acad.assignment.mngr
academic
adonet
aspnet
aspnet.announcements
aspnet.build.controls
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
clr
compactframework
component_services
datatools
distributed_apps
drawing
faqs
framework
framework.wmi
general
internationalization
interop
languages.csharp
languages.jscript
languages.vb
languages.vb.controls
languages.vb.data
languages.vb.upgrade
languages.vc
languages.vc.libraries
myservices
odbcnet
performance
remoting
scripting
sdk
security
setup
vjsharp
vsa
webservi.enhancements
webservices
windowsforms
windowsforms.controls
winforms.databinding
winforms.designtime
xml
  
 
date: Tue, 14 Jun 2005 18:20:32 -0400,    group: microsoft.public.dotnet.myservices        back       


Changing Service Properties   
Hi,

Is there a way to change the properties on an already existing service with
..NET.  I know that the ServiceController class can be used to perform
administrative tasks such as starting or stopping a service but a need to
change the properties of an already existing service:  The properties are
the following

1.  The Startup type
2.  The Log On
3.  The Recovery: First failure, second failure, Subsequent failures

These properties can probably changed when you create a Service from scratch
with the .NET framework but in my case, the service has been written by
someone else with another development environment (Delphi).

Mastermo

Thanks.
date: Tue, 14 Jun 2005 18:20:32 -0400   author:   Mohamed Ben

Re: Changing Service Properties   
Mohamed Ben wrote:
> Hi,
> 
> Is there a way to change the properties on an already existing service with
> .NET.  I know that the ServiceController class can be used to perform
> administrative tasks such as starting or stopping a service but a need to
> change the properties of an already existing service:  The properties are
> the following
> 
> 1.  The Startup type
> 2.  The Log On
> 3.  The Recovery: First failure, second failure, Subsequent failures
> 
> These properties can probably changed when you create a Service from scratch
> with the .NET framework but in my case, the service has been written by
> someone else with another development environment (Delphi).
> 
> Mastermo
> 
> Thanks.

Framework has some nice classes for reading/writing the registry. This 
is where the settings you mention are stored. Take a peek.

- Lee
date: Wed, 15 Jun 2005 20:51:40 -0700   author:   Lee Gillie

Re: Changing Service Properties   
Thanks,

In Windows XP these settings seem to be under.
HKEY_LOCAL_MACHINE\System\CurrentControlSetServices.
I just have to check that there are at the same location with Window 2000,
2000 Server, 2003 Server.

Mastermo


"Lee Gillie"  wrote in message
news:%23ObMxbicFHA.2792@TK2MSFTNGP10.phx.gbl...
> Mohamed Ben wrote:
> > Hi,
> >
> > Is there a way to change the properties on an already existing service
with
> > .NET.  I know that the ServiceController class can be used to perform
> > administrative tasks such as starting or stopping a service but a need
to
> > change the properties of an already existing service:  The properties
are
> > the following
> >
> > 1.  The Startup type
> > 2.  The Log On
> > 3.  The Recovery: First failure, second failure, Subsequent failures
> >
> > These properties can probably changed when you create a Service from
scratch
> > with the .NET framework but in my case, the service has been written by
> > someone else with another development environment (Delphi).
> >
> > Mastermo
> >
> > Thanks.
>
> Framework has some nice classes for reading/writing the registry. This
> is where the settings you mention are stored. Take a peek.
>
> - Lee
date: Thu, 16 Jun 2005 12:40:22 -0400   author:   Mohamed Ben

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us