The example solution can be found in the examples\serviceWithAChildProcess subdirectory in the directory where Thread Validator was installed.
If the directory is not present, reinstall your software and choose custom or full installation.
The example projects can be found in the subdirectories in the directory where Thread Validator was installed.
examples\serviceWithAChildProcess\serviceWithAChildProcess
•serviceWithAChildProcess.vcproj for Microsoft® Visual Studio / .net
examples\serviceWithAChildProcess\serviceChildProcess
•serviceChildProcess.vcproj for Microsoft® Visual Studio / .net
There are a small number of configurations in each project:
•Debug / Release dynamically links to the svlTVStubService(_x64).lib demonstrating use with the NT Service API
The service is named SVL *** TV Child Process in the control panel services dialog (*** changes depending on the build configuration), and provides the following command line options:
•-install Install the service
•-remove Uninstall the service
•-start Start the service
•-stop Stop the service
•-debug Run as a console application for debugging
•-? Display the help message
•-help Display the help message
Open a cmd prompt in administrator mode, navigate to the location of the service executable, and use one of these commands to install, remove, start, stop the service.
Examples:
serviceWithAChildProcess.exe -install
serviceWithAChildProcess.exe -start
serviceWithAChildProcess.exe -stop
serviceWithAChildProcess.exe -remove