Controlling Event Reporting of a program running under SmartCheck

0 Likes

Problem:

How can I control the Event reporting of my program running under SmartCheck?

Resolution:

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:


  1. Private Declare Function StartEvtReporting Lib 'NMEVTRPT.dll' () As Long
  2. Private Declare Function EvtReportingState Lib 'NMEVTRPT.dll' () As Long
  3. Private Declare Function StopEvtReporting Lib 'NMEVTRPT.dll' () As Long

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.

Old KB# 11036
Comment List
Anonymous
Related Discussions
Recommended