Yeah i know NSSM and have used it successfully. I had a few reasons for haveing windows service code for Nim:
1. I'm more comfortable with nim than c 2. i want to be able to write stand alone applications which can be executed as 'normal' executable and also runs in the windows service context. 3. one executable can implement multiple windows services, idk if NSSM can do this. (4. learning and my amusement) I'am working on a higher level version (and without globals) but got stuck on an issue (it seems that the nim object i give to RegisterServiceCtrlHandlerEx as the lpContext: LPVOID gets garbage collected) which are not resolved yet. When i got it working i'll update the repo.
