Crate winservice

Source
Expand description

Run a Windows system service without hassle.

This crate exports two methods, but they should not be called directly from user code! Instead use the provided Service! macro. The exports are necessary because there is no way to provide the ServiceMain callback with a custom user pointer which could be used to extract its context. Funnily, this is possible for the ControlHandlerEx callback, so at least we only have to use this dirty trick once.