Bewerken

Delen via


USN_RECORD_COMMON_HEADER structure (ntifs.h)

The USN_RECORD_COMMON_HEADER structure contains the information for an update sequence number (USN) common header which is common through USN_RECORD_V2, USN_RECORD_V3 and USN_RECORD_V4 structure.

Syntax

typedef struct {
  ULONG  RecordLength;
  USHORT MajorVersion;
  USHORT MinorVersion;
} USN_RECORD_COMMON_HEADER, *PUSN_RECORD_COMMON_HEADER;

Members

RecordLength

The total length of a record, in bytes.

Because USN record is a variable size, the RecordLength member should be used when calculating the address of the next record in an output buffer.

For USN_RECORD_V4 structure, the size in bytes of any change journal record is at most the size of the structure, plus (NumberOfExtents-1) times size of the USN_RECORD_EXTENT.

MajorVersion

The major version number of the change journal software for this record.

For example, if the change journal software is version 4.0, the major version number is 4.

Value Description
2 The structure is a USN_RECORD_V2 structure and the remainder of the structure should be parsed using that layout.
3 The structure is a USN_RECORD_V3 structure and the remainder of the structure should be parsed using that layout.
4 The structure is a USN_RECORD_V4 structure and the remainder of the structure should be parsed using that layout.

MinorVersion

The minor version number of the change journal software for this record. For example, if the change journal software is version 4.0, the minor version number is zero.

Requirements

Requirement Value
Minimum supported client Windows 8.1
Header ntifs.h

See also

FSCTL_READ_USN_JOURNAL