Article View: borland.public.delphi.nativeapi
Article #18Problem with ChangeServiceConfig
From: SalmanBajwa
Date: Wed, 01 Jun 2005 13:08
Date: Wed, 01 Jun 2005 13:08
12 lines
1608 bytes
1608 bytes
Hi, I am stuck with a problem in ChangeServiceConfig API. I am using this API to change the Service Logon options for a service after installation. But if i install the service on a fresh machine (on which this service wasnt being installed perviously), this API doesnt work. But when i go to Windows Service manager, and manually change the logon options. and click OK. it displays me message "The Service options are changed from local system"... (something like this message). And after that whenever this API is used, it works fine...... Can anyone tell me what could be the problem for first time? Why its not being functional??
Technical Details
Message-ID:
<1117631289.091503.81640@g49g2000cwa.googlegroups.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!g49g2000cwa.googlegroups.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: f94dd,cf7d034027615ebc,start X-Google-Attributes: gidf94dd,public X-Google-Language: ENGLISH,ASCII-7-bit Path: arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!g49g2000cwa.googlegroups.com!not-for-mail From: SalmanBajwa@gmail.com Newsgroups: borland.public.delphi.nativeapi Subject: Problem with ChangeServiceConfig Date: 1 Jun 2005 06:08:09 -0700 Organization: http://groups.google.com Lines: 13 Message-ID: <1117631289.091503.81640@g49g2000cwa.googlegroups.com> NNTP-Posting-Host: 202.38.50.242 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1117631295 9395 127.0.0.1 (1 Jun 2005 13:08:15 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 1 Jun 2005 13:08:15 +0000 (UTC) User-Agent: G2/0.2 Complaints-To: groups-abuse@google.com Injection-Info: g49g2000cwa.googlegroups.com; posting-host=202.38.50.242; posting-account=1wW9DgwAAADEPUisqSotL5fY2t8sNNF6