GetLogFileInformation function

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.

Syntax

CLFSUSER_API BOOL GetLogFileInformation(
  IN HANDLE                hLog,
  IN OUT PCLFS_INFORMATION pinfoBuffer,
  IN OUT PULONG            cbBuffer
);

Parameters

hLog

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.

pinfoBuffer

A pointer to a user-allocated CLFS_INFORMATION structure that receives the log metadata.

cbBuffer

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.

Return Value

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:

Requirements

   
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2003 R2 [desktop apps only]
Target Platform Windows
Header clfsw32.h
Library Clfsw32.lib
DLL Clfsw32.dll

See Also

CLFS_INFORMATION

Common Log File System Functions

CreateLogFile

Obtaining the Next LSN