How can I control the Event reporting of my program running under SmartCheck?
The Event Reporting (Start/Stop) API can be used to control the event
reporting of a program running under SmartCheck. It is
available as both a 'straight' API for use in C and C programs, and
as a set of methods in a COM object for use in Visual Basic programs.
EVENT REPORTING API's
There are three API's available for Event Reporting that your program can use while it is running under SmartCheck. They are:
StartEvtReporting enables event reporting, and returns the previous event reporting state.
StopEvtReporting disables reporting, and returns the previous state.
EvtReportingState returns the current reporting state without changing it. A value of 1 means that event reporting was ON when the function was called. A value of 0 means that event reporting was OFF when the function was called. A value of -1 means that SmartCheck was not present.
All three functions are exported from NMEVTRPT.dll.
This NMEVTRPT.dll is not registered by default so you must register it using regsvr32.exe before running your application. The NMEVTRPT.dll file is installed in the Windows system directory.
If the NMEVTRPT.dll file is not properly registered, you will recieve an error message telling you that the NMEVTRPT.dll file was not found.
Here is a link to a sample VB program that you can download which uses these APIs.