SetupAPI Logging Functions

Starting with Windows Vista, Plug and Play (PnP) device installation applications, class installers, and co-installers can use the following functions to write log entries to the SetupAPI text logs.

Function Description

SetupGetThreadLogToken

Retrieves the log token for the thread that called SetupGetThreadLogToken.

SetupSetThreadLogToken

Sets the log token for the thread that called SetupSetThreadLogToken.

SetupWriteTextLog

Writes a log entry in a SetupAPI text log.

SetupWriteTextLogError

Writes information about a SetupAPI-specific error or a Win32 error in SetupAPI text log.

SetupWriteTextLogInfLine

Writes a log entry in a SetupAPI text log that contains the text of a specified INF file line.