Crate winservice [] [src]

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.

Macros

Service

Create and run the provided function as Windows system service.

Functions

dispatch

This should never be directly called from the user.

serve

This should never be directly called from the user.