Share via


WTTLogClearErrorList function

The WTTLogClearErrorList function removes all errors of the specified type from a given list of known errors.

Syntax

HRESULT WTTLogClearErrorList(
  DWORD dwErrorList,
  DWORD dwErrorType
);

Parameters

  • dwErrorList
    [in] The error list to clear. This parameter can be one of the following values: WTT_ERROR_LIST_EXPECTEDWTT_ERROR_LIST_BREAKON

  • dwErrorType
    [in] The type of the error to remove. This parameter can be one of the following values: WTT_ERROR_TYPE_HRESULTWTT_ERROR_TYPE_NTSTATUSWTT_ERROR_TYPE_WIN32WTT_ERROR_TYPE_BOOL

Return value

WTTLogClearErrorList returns one of the following values:

Return code Description
S_OK

The operation was successful.

S_FALSE

The operation was successful but the last device has been detached, which has triggered a rollup.

HRESULT

The operation failed. You should use the FAILED macro to check HRESULT values.

 

Requirements

Header

Wttlogger.h

Library

WTTLog.dll

See also

WTTLog Functions (C)

WTTLogAddErrorToErrorList

WTTLogRemoveErrorFromErrorList

 

 

Build date: 9/14/2012