WTTLogCheckResultEx
The WTTLogCheckResultEx function checks a specified result against a target result and logs an error if both the value and type match.
HRESULT WTTLogCheckResultEx (
LONG hDevice,
DWORD dwResultToCheck,
DWORD dwResultType,
DWORD dwTargetResult,
DWORD dwTargetResultType,
LPWSTR pwszFile,
ULONG ulLine,
LPWSTR pwszErrMsg
);
Parameters
hDevice
[in] A handle to the device tracing topology. You can combine multiple handles by using the bitwise OR operator (for example, hDevice1 OR hDevice2).
dwResultToCheck
[in] The result to check.
dwResultType
dwTargetResult
[in] The target result to check the dwResultToCheck result against.
dwTargetResultType
pwszFile
[in] The name of the source file where the assert happened.
ulLine
[in] Te line number within the source file where the assert happened.
pwszErrMsg
[in] The text message for the error.
Return Value
returns one of the following values:
- 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
Headers: Wttlogger.h
Library: WTTLog.dll
See Also
WTTLog Functions (C), WTTLogCheckResult
Send feedback on this topic
Built on December 10, 2009