Share via


IWTTLog Interface (COM)

Note  This content applies to the Windows Logo Kit (WLK). For the latest information using the new Windows Hardware Certification Kit (HCK), see Windows HCK User's Guide on the Windows Hardware Dev Center.

The IWTTLog interface implements a COM interface for logging messages and errors.

IWTTLog contains the following public methods.

Method Description

AddErrorToErrorList

Adds a specified error to a list of known errors.

Assert

Checks the specified condition and, if the condition is false, fails the test case unless a trace is logged or you specifically declare the test case to be skipped.

CheckResult

Checks a specified result and logs an error if the result shows a failure.

CheckResultEx

Checks a specified result against a target result and logs an error if both the value and type match.

ClearErrorList

Removes all errors of the specified type from a given list of known errors.

CloseLogDevice

Closes a log device topology that the device string or the handle specify.

CreateLogDevice

Creates a log device topology according to the device string.

EndTest

Traces the end of a test case, clears the current test case context, and sets it to the parent context.

EndTestEx

Traces the end of a test case and enables you to specify a GUID-based test ID and a test hierarchy.

GetCurrentContext

Retrieves the current context of the logger object.

RemoveErrorFromErrorList

Deletes the specified error from a list of known errors.

SetContext

Sets the current context of the logger object for all subsequent traces.

SetDeviceOption

Sets the current context of the logger object for all subsequent traces.

StartTest

Traces the start of a test case.

StartTestEx

Traces the start of a test case and enables you to specify a GUID-based test ID and a test hierarchy.

Trace

Logs a trace of the specified device at the given trace level.

TraceMachineInfo

Sets the given information about the specified trace computer.

UserDefinedTrace

Logs trace data by using a user-defined trace level.

 

Requirements

IDL file: Log.idl

Library: WTTLogCM.dll

See Also

CWTTLogger Class (C++), WTTLog Functions (C)

 

 

Build date: 9/14/2012