Before you can use a file log, you must call SetupInitializeFileLog to open or create it. When you call this function, you can specify flags to create or overwrite a file log, open the system log, or open a file log as read-only.
After SetupInitializeFileLog returns a handle to a file log, you can add an entry by calling SetupLogFile, delete an entry by calling SetupRemoveFileLogEntry, or retrieve information about a particular file in a file log by calling SetupQueryFileLog.
When the file log is no longer needed, SetupTerminateFileLog should be called to release the resources allocated during the call to SetupInitializeFileLog.