SetupSetThreadLogToken function (setupapi.h)

The SetupSetThreadLogToken function sets the log context, as represented by a log token, for the thread from which this function was called. A subsequent call to SetupGetThreadLogToken made within the same thread retrieves the log token that was most recently set for the thread.

Syntax

WINSETUPAPI VOID SetupSetThreadLogToken(
  [in] SP_LOG_TOKEN LogToken
);

Parameters

[in] LogToken

A log token that is either a system-defined log token or was returned by SetupGetThreadLogToken.

Return value

None

Remarks

SetupSetThreadLogToken establishes a log context for the thread from which the function was called. The log context is represented by a log token, which can be retrieved by calling SetupGetThreadLogToken.

For more information about log tokens, see Log Tokens.

For more information about using log tokens, see Setting and Getting a Log Token for a Thread.

Requirements

Requirement Value
Minimum supported client Available in Windows Vista and later versions of Windows.
Target Platform Desktop
Header setupapi.h (include Setupapi.h)
Library Setupapi.lib

See also

Log Tokens

Setting and Getting a Log Token for a Thread

SetupGetThreadLogToken