[python-win32] ctypes and python dll callbacks

le dahut le.dahut at laposte.net
Tue Jan 22 09:36:23 CET 2008


Sorry but where can I find "RegisterServiceCtrlHandlerEx" ? I could only 
find "servicemanager.RegisterServiceCtrlHandler" which is different and 
do not catch logon/logoff events.

Thanks.

Mark Hammond a écrit :
>> Hello,
>> I'm trying to use RegisterServiceCtrlHandlerEx. Since it isn't
>> available
>> in pywin32,
> 
> FYI, the pywin32 service framework does call RegisterServiceCtrlHandlerEx()
> for you - it just doesn't expose it directly.  If all you are doing is
> writing a service to capture these events, pywin32 should work fine.
> 
> Mark
> 
> 
> 


More information about the python-win32 mailing list