[Win32utils-devel] Service.start arguments failing or causing segfault

Daniel Berger djberg96 at gmail.com
Sat Nov 24 09:29:06 EST 2007

Heesob Park wrote:


>     I wasn't sure if I needed to explicitly push the service name onto the
>     array, but it does segfault without it.
>     I also wasn't sure if I needed to explicitly pack the array. Again, it
>     segfaulted without it. 
> Don't ask me why, just follow the rule of the microsoft :)
> Acording to http://msdn2.microsoft.com/en-US/library/ms686321.aspx ,
> StartService function requires NULL or an argument which the first 
> element must be service name.
> And argument type is not LPCSTR, but LPCTSTR* ( pointer of string), so 
> it need to be packed. 

Ok, then what I have should work.

I did notice a mistake in the demo_daemon_ctl.rb program (which I fixed 
in CVS), so now it runs ok, but the args don't appear to get passed to 

Are you seeing the same thing?



More information about the win32utils-devel mailing list