Subject Re: [firebird-support] Request for FB 1.5
Author Olivier Mascia
On 19/02/2004 9:38 GMT+1, Nando Dessena wrote:

> OM> Of course. Just write a piece of program that add a service description
> OM> to the already installed service. Or update instsvc source code for
> OM> doing so. I'll take care of this soon, if no other developer here sees a
> OM> reason not to do it. But you can for sure fix this for yourself without
> OM> delay.
>
> I'm sure you know better, but AFAIK service descriptions are not
> available under all the platforms where services are available.

Not sure (I really doubt it) that I know anything better, Nando ! ;-)
Yes, descriptions are not available on all NT platforms.
As far as I remember, they didn't existed on NT4.
But they are available on Win2K and above.

> I seem to remember that there's not even provision in the API to
> specify a description when installing a service, and that you should
> add the required string value to the registry "by hand" after
> registering the service.

To enter or change the description, you can't do it on CreateService()
time, you're right. You have to do it after, using
ChangeServiceConfig2(), which is only available on Win2K and above (as
well as the descriptions anyway). There is no problem dynamically
calling this API from instsvc only on platforms where it is available.
Hacking the registry is uneeded.

The whole question is what exact text shall we put in the description
string. I'd suggest : "Yo! I'm the description string." ;-)

--
Best Regards,
Olivier Mascia