[Win32utils-devel] [Fwd: [ruby] win32-service : RegisterServiceCtrlHandlerEx]
phasis at gmail.com
Wed Jun 28 00:54:13 EDT 2006
2006/6/28, Daniel Berger <djberg96 at gmail.com>:
> ---------- 전달된 메시지 ----------
> From: "Romuald du Song" <rdusong at gmail.com>
> To: "Daniel Berger" <djberg96 at gmail.com>, stevetuckner
> <stevetuckner at usfamily.net>, phasis68 at hotmail.com, sdate at everestkc.net
> Date: Mon, 26 Jun 2006 00:02:10 +0200
> Subject: [ruby] win32-service : RegisterServiceCtrlHandlerEx
> I am trying to build a ruby service that keep track of log on and log off
> on windows machine.
> I've no windows specific development knowledge so it was hard
> for me to find that you could use RegisterServiceCtrlHandlerEx
> to register an HandlerEx to be notified of SERVICE_CONTROL_SESSIONCHANGE.
> My problem is that win32-service does not use this function
> but RegisterServiceCtrlHandler.
> I've no tools and knowledge to extend win32-service to provide this
> new functionnality.
> Is this functionnality interesting enough that a win32-service developper
> may consider adding it ?
> Thanks you for your time.
I agree to his proposal to extend win32-service for new functionnality.
But there is one problem. If you use RegisterServiceCtrlHandlerEx in
win32-service, you cannot compile it with VC++ 6.0.
More information about the win32utils-devel