Skip to main content

Crate prefetch_core

Crate prefetch_core 

Source
Expand description

Pure-Rust, read-only Windows Prefetch (.pf) reader.

Windows 8.1/10/11 store prefetch compressed with a MAM (Xpress-Huffman) wrapper; the decompressed payload is the classic SCCA structure. This crate decodes both, cross-platform, with no Windows API dependency.

Structs§

PrefetchInfo
The forensically-salient contents of a Windows prefetch file.
VolumeInfo
A volume referenced by a prefetch file’s VolumeInformation block.

Enums§

PrefetchError
Errors decoding a prefetch file.

Constants§

SCCA_SIGNATURE
Decompressed SCCA payload signature. It sits at byte offset 4 — the SCCA header is [u32 version][b"SCCA"]… (version values: 17 XP, 23 Vista/7, 26 Win8.1, 30 Win10, 31 Win11).
SCCA_SIGNATURE_OFFSET
Byte offset of SCCA_SIGNATURE within the decompressed payload.

Functions§

decompress
Decompress a (possibly MAM-wrapped) prefetch file into its raw SCCA bytes.
parse
Parse a prefetch file (MAM-compressed or raw SCCA) into PrefetchInfo.
parse_decompressed
Parse an already-decompressed SCCA payload (version 30/31).