Please enable JavaScript to view this site.

Coverage Validator Help

Navigation: API

Native API Reference

Scroll Prev Top Next More

Unicode or ANSI?

 

All the API functions are declared as extern "C", so they can be used by C users and C++ users.

 

To use these functions #include svlCVAPI.h into your code.

 

 

cvLoadProfiler

 

Loads the profiler DLL into memory, but does not start the profiler.

 

Use this for:

32 bit applications with a 32 bit Coverage Validator GUI

64 bit applications with a 64 bit Coverage Validator GUI

 

For most use cases won't need to load the profiler, as the profiler will have been loaded when your launched your program from Coverage Validator, or when you injected into your program using Inject or Wait For Application.

 

However if you're running your program from outside of Coverage Validator and want to load the profiler from inside your program you can use cvLoadProfiler() to do that. You'll then need to call cvStartProfiler() to start it.

 

extern "C" 

int cvLoadProfiler();

 

Returns:
TRUE   Successfully loaded PV DLL into target application.
FALSE Failed to load the PV DLL.into target application.

      Check that the PATH environment variable points to the Coverage Validator install directory contains svlCoverageValidatorStub*.dll.

 

Do not use this function if you are working with services, use the NT Service API.

 

 

cvLoadProfiler6432

 

Loads the profiler DLL into memory, but does not start the profiler.

 

Use this for:

32 bit applications with a 64 bit Coverage Validator GUI

 

For most use cases won't need to load the profiler, as the profiler will have been loaded when your launched your program from Coverage Validator, or when you injected into your program using Inject or Wait For Application.

 

However if you're running your program from outside of Coverage Validator and want to load the profiler from inside your program you can use cvLoadProfiler6432() to do that. You'll then need to call cvStartProfiler() to start it.

 

extern "C" 

int cvLoadProfiler6432();

 

Returns:
TRUE   Successfully loaded PV DLL into target application.
FALSE Failed to load the PV DLL.into target application.

      Check that the PATH environment variable points to the Coverage Validator install directory contains svlCoverageValidatorStub*.dll.

 

Do not use this function if you are working with services, use the NT Service API.

 

 

cvStartProfiler

 

To start the profiler from your API code you need to call the function cvStartProfiler() from your code before you call any API functions. Ideally you should call this function as early in your program as possible.

 

extern "C" 

int cvStartProfiler();

 

Returns:
TRUE   Successfully started PV profiler.
FALSE Failed to start the PV profiler.

 

If you prefer to start the profiler from the user interface or command line you can omit the cvStartProfiler() call. You can leave it present if you wish to start Coverage Validator from your program.

 

Do not use this function if you are working with services, use the NT Service API.

 

 

cvSetCollect()

 

Enables or disables data collection - i.e. whether data is sent to Coverage Validator from your target application.

 

extern "C" 
void cvSetCollect(int enable); // TRUE to enable, FALSE to disable

 

 

cvGetCollect()

 

Returns whether data collection is on.

 

extern "C" 
int cvGetCollect();                 // Returns TRUE or FALSE