Windows services Recovery not restarting service

Hey, thank you for your input.
Finally I found another post, which solves this.

For the interested readers :

So in short, set sc failureflag MySvc 1
and use Quit(2) in your code.

Greetings
T