Export (0) Print
Expand All

ClfsGetIoStatistics routine

The ClfsGetIoStatistics routine returns I/O statistics for a specified CLFS log.

Syntax


NTSTATUS ClfsGetIoStatistics(
  _In_      PLOG_FILE_OBJECT   plfoLog,
  _Inout_   PVOID              pvStatsBuffer,
  _In_      ULONG              cbStatsBuffer,
  _In_      CLFS_IOSTATS_CLASS eStatsClass,
  _Out_opt_ PULONG             pcbStatsWritten
);

Parameters

plfoLog [in]

A pointer to a LOG_FILE_OBJECT structure that represents a CLFS stream. The I/O statistics will be collected for the stream's underlying log on stable storage. The caller previously obtained this pointer by calling ClfsCreateLogFile.

pvStatsBuffer [in, out]

A pointer to a CLFS_IO_STATISTICS structure that receives the I/O statistics data.

cbStatsBuffer [in]

The size, in bytes, of the buffer pointed to by pvStatsBuffer. This parameter must be at least sizeof(CLFS_IO_STATISTICS_HEADER). If this parameter is less than sizeof(CLFS_IO_STATISTICS), pvStatsBuffer will receive only a portion of the available I/O statistics.

eStatsClass [in]

This parameter is reserved for future use.

pcbStatsWritten [out, optional]

A pointer to a ULONG-typed variable that receives the number of bytes actually written to pvStatsBuffer. This parameter can be NULL.

Return value

ClfsGetIoStatistics returns STATUS_SUCCESS if it succeeds; otherwise, it returns one of the error codes defined in Ntstatus.h.

Remarks

For an explanation of CLFS concepts and terminology, see Common Log File System.

Requirements

Target platform

Desktop

Version

Available in Windows Server 2003 R2, Windows Vista, and later versions of Windows.

Header

Wdm.h (include Wdm.h)

Library

Clfs.lib

DLL

Clfs.sys

IRQL

<= APC_LEVEL

See also

ClfsCreateLogFile

 

 

Send comments about this topic to Microsoft

Show:
© 2015 Microsoft