This class provides an implementation of the event tracing callback function which is used for the Operating System’s event tracer to communicate with the provider. The provider can also access some of this information for use within the provider if necessary. For a list of all members of this type, see CTraceController Members. CTraceController [C++]
class CTraceController
Example[C++]
CTraceController g_Controller;
extern "C" int _tmain()
{
// The supported event classes that this provider will trace
g_Controller.AddEventType(&MY_EVENTCLASS);
g_Controller.AddEventType(&MY_VARIABLE_LEN_EVENTCLASS);
// Register this as an event tracing provider
ULONG ulReg = g_Controller.Register(MY_EVENTTRACER);
// Let the process do its stuff!
SomeFunction();
// Must un-register the provider!
ULONG ulUnReg = g_Controller.Unregister();
return 0;
}
RequirementsPlatforms: Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family Header: Declared in WMIEventTracing.h
See AlsoCVariableLengthBaseEvent Members | CTraceEvent Members | CTraceController Members | CBaseEvent Members |
Contact Me | Developing WMI Solutions | Gwyn Cole's Developer Blog | Legal |
© 2003 Content by Gwyn Cole. All rights reserved. |