http://bugs.winehq.org/show_bug.cgi?id=5809
------- Additional Comments From focht@gmx.net 2007-17-04 04:43 ------- Created an attachment (id=5822) --> (http://bugs.winehq.org/attachment.cgi?id=5822&action=view) Implements QueryServiceStatusEx
Hello,
when you play with sc.exe tool, you might notice following message:
--- snip --- fixme:advapi:QueryServiceStatusEx stub [SC] StartService: QueryServiceStatusEx FAILED 120:
Call not implemented --- snip ---
As most SCM tools use this function (instead of QueryServiceStatus()), i implemented it, see attached patch (against wine-0.9.35-25-g58c7c51). There is only a small problem left: if QueryServiceStatusEx() caller really need service process id, it should be saved upon service_start_process() (maybe in service_data) and returned later. Though the process id issue requires very little SCM related changes i leave this exercise to SCM/advapi subsystem maintainer :)
With that, the tool works as expected (returning real service status). Be aware it might unearth SCM/named pipe related bugs :)
Regards