Returns a buffer that contains metadata about a specified log and its current state, which is defined by the CLFS_INFORMATION structure.
Data that is obtained reflects the state of the log only at the time when the call is made. Typically, a client can continue to cache and use fields from this structure until the next time that it appends records or writes its restart area. At that time, some of the information becomes stale.
CLFSUSER_API BOOL GetLogFileInformation( IN HANDLE hLog, IN OUT PCLFS_INFORMATION pinfoBuffer, IN OUT PULONG cbBuffer );
A handle to an open log that is obtained from a successful call to CreateLogFile.
The log handle can refer to a dedicated or multiplexed log.
A pointer to a user-allocated CLFS_INFORMATION structure that receives the log metadata.
A pointer to a variable that on input specifies the size, in bytes, of the metadata buffer pointed to by pinfoBuffer.
On output, it specifies the number of bytes that are actually copied into pinfoBuffer.
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, call GetLastError.
The following list identifies the possible error codes:
|Minimum supported client||Windows Vista [desktop apps only]|
|Minimum supported server||Windows Server 2003 R2 [desktop apps only]|