Article View: borland.public.cppbuilder.nativeapi
Article #16215Re: Troubles with services
From: Stefano Bonifazi
Date: Tue, 27 May 2003 17:17
Date: Tue, 27 May 2003 17:17
15 lines
1736 bytes
1736 bytes
> I'm just guessing, but maybe the command line method is installing the > service without actually starting it? (I think you'd get > ERROR_INVALID_NAME if you passed a service name that was too long or > that contained invalid characters, \ or /.) > > Thank You, yes, the command line method actually does not start the service, but that was not a matter for OpenService ... the problem was with the DisplayName and Name property: Microsoft Administrator Tool for managing services under WinXP reports the displayNames under the voice "Name", so only those ones with equal Name and display Name worked with my code!! My Regards! Stefano B.
Technical Details
Message-ID:
<3ed3a7d5@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<3ed1e176@newsgroups.borland.com> <3ED2955A.2020303@domain.invalid>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,2bef8d34fe764e59 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-05-27 11:30:52 PST Reply-To: "Stefano Bonifazi" <stefboombastic@libero.it> From: "Stefano Bonifazi" <stefboombastic@libero.it> Newsgroups: borland.public.cppbuilder.nativeapi References: <3ed1e176@newsgroups.borland.com> <3ED2955A.2020303@domain.invalid> Subject: Re: Troubles with services Date: Tue, 27 May 2003 19:17:05 +0200 Lines: 17 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 NNTP-Posting-Host: 212.141.199.1 Message-ID: <3ed3a7d5@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1054058453 212.141.199.1 (27 May 2003 11:00:53 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail