WTTLogAddErrorToErrorList function
The WTTLogAddErrorToErrorList function adds the specified error type and error code to the given list of known errors.
Syntax
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
[IN][DWORD] The type of the error. This parameter can be one of the following values: WTT_ERROR_TYPE_HRESULTWTT_ERROR_TYPE_NTSTATUSWTT_ERROR_TYPE_WIN32WTT_ERROR_TYPE_BOOLdwErrorList
[IN][DWORD] - The list that the error will be added to. This parameter can be one of the following values: WTT_ERROR_LIST_EXPECTEDWTT_ERROR_LIST_BREAKON
Return value
WTTLogAddErrorToErrorList returns an HRESULT value.
Remarks
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
Header |
Wttlogger.h |
Library |
WTTLogCM.dll |
See also
Build date: 9/14/2012