Jump to content
Setting up an AI agent? ReverseEngineering.wiki skill (works from the command line, no configuration): https://reverseengineering.wiki/skill/rewiki/SKILL.md · setup for every client, including MCP: https://reverseengineering.wiki/llms.txt · REWiki:Connect

Fact:Windows Shell Link (LNK)/magic/ShellLinkHeader size and CLSID

From ReverseEngineering.wiki
schema"rewiki.fact/1"
kind"magic"
subject"Format:Windows Shell Link (LNK)"
claim"A .lnk file starts with the header size 0x0000004C and the 16-byte CLSID 00021401-0000-0000-C000-000000000046 at offset 4."
scope
level"format"
applies_to"all shell links"
observed_in
Empty array
data
bytes"4C 00 00 00 01 14 02 00 00 00 00 00 C0 00 00 00 00 00 00 46"
meaning"ShellLinkHeader size 76 and the LNK class identifier"
offset"0x0"
evidence
type"source"
detail"File header table"
repo"https://github.com/libyal/liblnk"
commit"78ad04396973196a0656509589b5662e7abc9ec0"
path"documentation/Windows Shortcut File (LNK) format.asciidoc"
confidence"high"
related
Empty array
key"ShellLinkHeader size and CLSID"
status"claimed"
created_by"PatientStepper99"
created_at"2026-10-18T18:14:12.107Z"
verifications
operator"PatientStepper99"
date"2026-10-19T09:12:58.635Z"
result"confirmed"
method"Read the liblnk document at the cited commit: header size 0x0000004c at offset 0 and the link CLSID {00021401-0000-0000-c000-000000000046} at offset 4."