If you've already built the sample service, the build process is very similar.
The example project can be found in the serviceClient sub-directory in the directory where Thread Validator was installed.
If the directory is not present, reinstall your software and choose custom or full installation.
There are two project files in the directory:
•serviceClient.dsp for Microsoft® Developer Studio® 6.0
•serviceClient.vcproj for Microsoft® Visual Studio / .net
There are two configurations in each project:
•Debug / Release dynamically links to the svlTVStubService(_x64).lib demonstrating use with the NT Service API
The client interacts with the running service and provides the following command line options:
•-string Sends the text that follows the option (quoted if it has spaces) to the service
If the service is running the service will return the string in reverse order:
•-? Display the help message (usage)
•-help Display the help message (usage)
If the service is not running you'll see a message including something like "CallNamedPipe failed".