IApiTracingDataCollector interface

Logs Win32 calls to Kernel32.dll, Advapi32.dll, Gdi32.dll, and User32.dll. Note that for security reasons, not all function calls are logged.

To create this data collector, call the IDataCollectorCollection::CreateDataCollector or IDataCollectorCollection::CreateDataCollectorFromXml method. For details on the XML that you pass to CreateDataCollectorFromXml, see Remarks.

Methods

The IApiTracingDataCollector interface has these methods.

Method Description
IApiTracingDataCollector::get_ExcludeApis Retrieves or sets the list of functions to exclude from the trace.
IApiTracingDataCollector::get_ExePath Retrieves or sets the path to the executable file whose API calls you want to trace.
IApiTracingDataCollector::get_IncludeApis Retrieves or sets the list of functions to include in the trace.
IApiTracingDataCollector::get_IncludeModules Retrieves or sets the list of modules to include in the trace.
IApiTracingDataCollector::get_LogApiNamesOnly Retrieves or sets a value that indicates whether PLA logs only the function name.
IApiTracingDataCollector::get_LogApisRecursively Retrieves or sets a value that indicates whether API tracing logs calls that are imported directly by the application.
IApiTracingDataCollector::get_LogFilePath Retrieves or sets the name of the log file that contains the API trace data.
IApiTracingDataCollector::put_ExcludeApis Retrieves or sets the list of functions to exclude from the trace.
IApiTracingDataCollector::put_ExePath Retrieves or sets the path to the executable file whose API calls you want to trace.
IApiTracingDataCollector::put_IncludeApis Retrieves or sets the list of functions to include in the trace.
IApiTracingDataCollector::put_IncludeModules Retrieves or sets the list of modules to include in the trace.
IApiTracingDataCollector::put_LogApiNamesOnly Retrieves or sets a value that indicates whether PLA logs only the function name.
IApiTracingDataCollector::put_LogApisRecursively Retrieves or sets a value that indicates whether API tracing logs calls that are imported directly by the application.
IApiTracingDataCollector::put_LogFilePath Retrieves or sets the name of the log file that contains the API trace data.

Remarks

The following example shows the XML that you can use to initialize this object if you call CreateDataCollectorFromXml to create it. The IDataCollector::Xml property also returns this XML.

XML
<ApiTracingDataCollector>
    <ExcludeApis/>
    <ExePath/> 
    <IncludeApis/>
    <IncludeModules/>
    <LogApiNamesOnly/>
    <LogApisRecursively/>
    <LogFilePath/>
</ApiTracingDataCollector>
Note that the example does not show the property elements inherited from IDataCollector that you also need to specify.

When you specify the XML to create the collector, you can specify only the elements for the properties that you want to set. If you do not specify a property, PLA provides a default value. When you retrieve the XML for the collector, the XML provides all elements, including those from IDataCollector.

Requirements

   
Windows version Windows Vista [desktop apps only] Windows Server 2008 [desktop apps only]
Target Platform Windows
Header pla.h

See Also

IDataCollector