WTTLogAddErrorToErrorList
The WTTLogAddErrorToErrorList function adds the specified error type and error code to the given list of known errors.
HRESULT WTTLogAddErrorToErrorList (
IN DWORD dwErrorToAdd,
IN DWORD dwErrorType,
IN DWORD dwErrorList
)
Parameters
dwErrorToAdd
[IN][DWORD] A 32-bit error code to be added to the list that dwErrorList specifies.
dwErrorType
dwErrorList
Return Value
WTTLogAddErrorToErrorList returns an HRESULT value.
Comments
DTM Logger uses error lists to enable a test to pass even though the return value from a test function is an error. The WTTLogCheckResult function compares the error type and error code that are passed to it with the know errors on the list. If the error is on the list, WTTLogCheckResult returns S_OK, indicating that the test passed. If the error is not on the list, the test fails.
Requirements
Headers: Wttlogger.h
Library: WTTLogCM.dll
See Also
Send feedback on this topic
Built on December 10, 2009