Please enable JavaScript to view this site.

Bug Validator Help

Navigation: Examples > Example NT Service

Building the example service

Scroll Prev Top Next More

The example project can be found in the service subdirectory in the directory where Bug Validator was installed. If the directory is not present, reinstall your software and choose custom or full installation.

 

Open the file service.dsp using Microsoft® Developer Studio® 6.0.

 

There are two configurations, Debug and Release. The Debug and Release configurations are linked to the svlTVStubService.lib and demonstrate the use of the NT Service API.

 

The service has the name SVL TV Simple Service in the control panel services dialog.

 

The service 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:

 serviceBV.exe -install

 

 serviceBV.exe -start

 

 serviceBV.exe -stop

 

 serviceBV.exe -remove