🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: QueryServiceConfig

#4332
From: Bob Gonder
Date: Thu, 16 Feb 2006 15:33
12 lines
1451 bytes
Boba wrote:

>when calling QueryServiceConfig(SC_HANDLE,0,0,&dwBytesNeeded)
>the system (W2K) requests much more memory than the
>sizeof(QUERY_SERVICE_CONFIG) X NumberOfServicesInstalled.
>Tell me please What those extra bytes are for? Thank you.

From the help:
"The lpServiceConfig buffer must be large enough to hold the strings
pointed to by the members of the QUERY_SERVICE_CONFIG structure. "

IOW it looks like the strings follow the structure.
Technical Details
Message-ID: <hl69v11i7brq163ro7jjp08rsmqbetg0l7@4ax.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!proxad.net!194.117.148.138.MISMATCH!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <43f491df$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,2d4f3b72ac01978a
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: Bob Gonder <notbg@notmindspring.invalid>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: QueryServiceConfig
Date: Thu, 16 Feb 2006 07:33:08 -0800
Organization: MindSpring Enterprises, Inc.
Reply-To: notbg@notmindspring.invalid
Message-ID: <hl69v11i7brq163ro7jjp08rsmqbetg0l7@4ax.com>
References: <43f491df$1@newsgroups.borland.com>
X-Newsreader: Forte Agent 1.93/32.576 English (American)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 67.77.145.23
X-Trace: newsgroups.borland.com 1140103748 67.77.145.23 (16 Feb 2006 07:29:08 -0700)
Lines: 13
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!proxad.net!194.117.148.138.MISMATCH!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail