Most API calls if you pass size needed of 0 it will return the actual size
it requires.
Then you can call the function again with the correct size.

So if in the first call you pass 0 as the 'cbBufSize' parameter, call the
function again and pass the returned value from 'pcbBytesNeeded' as the
value for cbBufSize.

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 23 July 2004 1:44 PM
To: NZ Borland Developers Group - Delphi List
Subject: Re: [DUG] Services


Has anyone used QueryServiceConfig ?

I cant get it working.  When I pass the structure Service_Config it 
returns an error saying it needs 226 bytes (whereas the size of the 
Service_Config is 36 bytes).Regards

Rohit

====================================================
==================
CFL - Computer Fanatics Ltd.  21 Barry's Point Road, AKL, New 
Zealand
PH    (649) 489-2280 
FX    (649) 489-2290
email [EMAIL PROTECTED]  or  [EMAIL PROTECTED]
====================================================
==================


_______________________________________________
Delphi mailing list
[EMAIL PROTECTED]
http://ns3.123.co.nz/mailman/listinfo/delphi
_______________________________________________
Delphi mailing list
[EMAIL PROTECTED]
http://ns3.123.co.nz/mailman/listinfo/delphi

Reply via email to