Please enable JavaScript to view this site.

Performance Validator Help

Navigation: Examples > Example NT Service

Building the example service

Scroll Prev Top Next More

Example service project files

 

The example project can be found in the service sub-directory in the directory where Performance 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:

 

service.dsp instructionStep for Microsoft® Developer Studio® 6.0  
 

service.vcproj instructionStep for Microsoft® Visual Studio / .net
 

 

Configurations

 

There are just two simple configurations in each project:

 

Debug / Release instructionStep dynamically links to the svlPVStubService(_x64).lib demonstrating use with the NT Service API  
 

 

Using the service

 

The service is named PV Simple Service in the control panel services dialog, and provides the following command line options:

 

-install instructionStep Install the service
 

-remove instructionStep Uninstall the service

 

-start instructionStep Start the service

 

-stop instructionStep Stop the service
 

-debug instructionStep Run as a console application for debugging
 

-? instructionStep Display the help message
 

-help instructionStep 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:

 servicePV.exe -install

 

 servicePV.exe -start

 

 servicePV.exe -stop

 

 servicePV.exe -remove