Share via


CWTTLogger::SetDeviceTracePriority method

The SetDeviceTracePriority method sets the specified device trace priority for all subsequent traces.

Syntax

HRESULT SetDeviceTracePriority(
  DWORD dwTracePri,
  LONG hDevice
);

Parameters

  • dwTracePri
    [in] The priority of the trace. This parameter should be one of the following values: WTT_TRACE_PRIORITY_HIGH_CLASSWTT_TRACE_PRIORITY_MEDIUM_CLASSWTT_TRACE_PRIORITY_LOW_CLASSWTT_TRACE_PRIORITY_RESERVED_CLASSWTT_TRACE_PRIORITY_USER_CLASS

  • 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).

Return value

SetDeviceTracePriority 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

Library:WTTLog.dll

See also

CWTTLogger Class (C++)

CWTTLogger::SetDeviceTraceLevel

 

 

Build date: 9/14/2012