You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Incorrect type is used for Advapi32.RegisterServiceCtrlHandler callback #1510
Valid point. I tried to test this method and utterly failed. I'm currently pondering killing support for RegisterServiceCtrlHandler in favor of RegisterServiceCtrlHandlerEx, which is already in the bindings, the suggested successor and tested.
If anyone wants to work on this, this is my test and it fails:
Activity
matthiasblaesing commentedon Mar 16, 2023
Valid point. I tried to test this method and utterly failed. I'm currently pondering killing support for
RegisterServiceCtrlHandlerin favor ofRegisterServiceCtrlHandlerEx, which is already in the bindings, the suggested successor and tested.If anyone wants to work on this, this is my test and it fails:
https://github.com/matthiasblaesing/jna/tree/winsvc_handler
I don't know why the codepath for
RegisterServiceCtrlHandlerfails, but it does.matthiasblaesing commentedon Mar 19, 2023
Seems I'm not alone:
https://stackoverflow.com/questions/10037654/how-can-a-windows-service-application-be-written-in-haskell
Seems
RegisterServiceCtrlHandleris broken.Fix RegisterServiceCtrlHandler using wrong Handler type