Logging::LogFileVersion method
Writes the four-part version number of an executable to Axe s pre-configured ETW file.
Syntax
virtual HRESULT LogFileVersion(
[in, optional] LPCWSTR message,
[in] LPCWSTR fileName,
[in, optional] LPCWSTR extraInformation
) = 0;
Parameters
-
message [in, optional]
-
A custom message to display at the beginning of the log message.
-
fileName [in]
-
The name of the executable from which to retrieve the version number.
-
extraInformation [in, optional]
-
A custom message that is appended to the end of the log message.
Return value
If the function succeeds, it returns S_OK. If it fails, it returns an error value.
Remarks
The file version is written out using the following format:
- *message fileName version messageTimestamp extraInformation*
where the messageTimestamp is the time the message is logged.
Managed code uses the Logging.LogFileVersion method.
Requirements
Minimum supported client |
Windows 7 [desktop apps only] |
Minimum supported server |
Windows Server 2008 R2 [desktop apps only] |
Header |
|
DLL |
|