SetupOpenLog function (setupapi.h)

[This function is available for use in the operating systems indicated in the Requirements section. It may be altered or unavailable in subsequent versions. SetupAPI should no longer be used for installing applications. Instead, use the Windows Installer for developing application installers. SetupAPI continues to be used for installing device drivers.]

The SetupOpenLog function opens the log files.

Syntax

WINSETUPAPI BOOL SetupOpenLog(
  [in] BOOL Erase
);

Parameters

[in] Erase

Must be FALSE.

Return value

TRUE if the log file can be opened. FALSE if an error occurs. To get the error code, call GetLastError.

Remarks

The log files are located in the Windows directory, and the file names are Setupact.log and Setuperr.log.

Requirements

Requirement Value
Minimum supported client Windows XP [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header setupapi.h
Library Setupapi.lib
DLL Setupapi.dll
API set ext-ms-win-setupapi-logging-l1-1-0 (introduced in Windows 8)

See also

Functions

Overview