Article View: borland.public.cppbuilder.nativeapi
Article #9810Re: Using ServiceMain()
From: Remy Lebeau (TeamB)
Date: Tue, 08 Jun 2004 18:07
Date: Tue, 08 Jun 2004 18:07
23 lines
1696 bytes
1696 bytes
"Arnie Mauer" <xxx@nowhere.net> wrote in message news:40c5b27e$1@newsgroups.borland.com... > Yes, I know that. But from the help: <snip> > I have tried setting the start parameters on the service's > property page and including parameters on the ImagePath > entry for the service in the registry, all to no avail. Passing parameters via the ImagePath will not work for ServiceMain(). The ImagePath is the command line for the executable itself, not the service inside the executable. They are not the same thing. The parameters for ServiceMain() can only be specified via the StartService() function. > Does that mean the SCM will simply not pass parameters > when starting a service? No. It does. Gambit
Technical Details
Message-ID:
<40c6016d$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.frii.net!newsfeed.frii.net!news.compaq.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<40c4b021$1@newsgroups.borland.com> <40c4b7c9$1@newsgroups.borland.com> <40c5b27e$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,5566683a52e317aa X-Google-Attributes: gid10cc67,public From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <40c4b021$1@newsgroups.borland.com> <40c4b7c9$1@newsgroups.borland.com> <40c5b27e$1@newsgroups.borland.com> Subject: Re: Using ServiceMain() Date: Tue, 8 Jun 2004 11:07:49 -0700 Lines: 25 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 68.169.168.124 Message-ID: <40c6016d$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1086718317 68.169.168.124 (8 Jun 2004 11:11:57 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.frii.net!newsfeed.frii.net!news.compaq.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail