🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #9781

Using ServiceMain()

#9781
From: Arnie Mauer
Date: Mon, 07 Jun 2004 18:12
16 lines
1186 bytes
Hi,

It's spec'ed as:

VOID WINAPI ServiceMain(

    DWORD dwArgc, // number of arguments
    LPTSTR *lpszArgv  // address of array of argument string pointers
   );

I have set up two input parameters on the service's properties page.
However, when the SCM starts the service, both input parameters are 0.
What am I missing?

Thanks,
- Arnie
Technical Details
Message-ID: <40c4b021$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!prodigy.com!atl-c02.usenetserver.com!news.usenetserver.com!peer01.cox.net!cox.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,5566683a52e317aa,start
X-Google-Attributes: gid10cc67,public
From: "Arnie Mauer" <xxx@nowhere.net>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Using ServiceMain()
Date: Mon, 7 Jun 2004 14:12:07 -0400
Lines: 18
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: 12.29.236.34
Message-ID: <40c4b021$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1086631969 12.29.236.34 (7 Jun 2004 11:12:49 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!prodigy.com!atl-c02.usenetserver.com!news.usenetserver.com!peer01.cox.net!cox.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail