LsnBlockOffset function (clfsw32.h)

Returns the sector-aligned block offset that is contained in the specified LSN.

Syntax

CLFSUSER_API ULONG LsnBlockOffset(
  [in] const CLFS_LSN *plsn
);

Parameters

[in] plsn

A pointer to a CLFS_LSN structure from which the block offset is to be retrieved.

Return value

LsnBlockOffset returns the block offset that is contained in plsn.

Remarks

The block offset that is returned by this function is a multiple of the sector size on the stable storage medium. For example, if the sector size is 1024 bytes, the block offset is a multiple of 1024.

Examples

For an example that uses this function, see Enumerating Log Containers.

Requirements

Requirement Value
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

LsnContainer

LsnCreate

LsnRecordSequence