A sample code of Part XI. NTService.
• if you insert run parameter, "install" then it gets registered to Windows service (Picture in below). In opposite, insert "uninstall" to unregister.
The codes can be found at <Installed folder>/sample/NTService.