How WinHelp Files Work
Web page · https://quin.fyi/posts/how-winhelp-files-work.html
First seen by Oriel on .
AI summary
This article explains WinHelp’s undocumented .hlp format and libhlp, a pure-Rust reader supporting files from WinHelp 3.0 through the Windows 95 compiler.
- WinHelp files are archives containing B+ tree indexes and internal files such as |SYSTEM, |TOPIC, |FONT, |CONTEXT, and picture resources.
- Topic text uses fixed-size blocks with optional LZ77 compression, followed by phrase compression through either WinHelp 3.1 tables or Windows 95 Hall compression.
- Links store hashes of case-insensitive context names rather than topic positions, while formatting references fonts defined in |FONT.
- A parsing bug occurred when Hall compression used a step size of one; reading an unnecessary remainder bit corrupted every phrase after the first.
- libhlp reads text, titles, tables, emphasis, links, and pictures, bounds checks input, and rejects unrelated Borland and MS-DOS QuickHelp .hlp files.
#winhelp #rust #file formats #compression
Generated by gpt-5.6-sol. Check the original for details.
Metric trends
Last 30 days · Up to 120 recorded samples per source and metric, with reposts kept separate · First and latest retained
Points
Score reported by the source.
- Hacker News: 55, latest observation ; +48 over observed period since
- Lobsters: 23, latest observation ; +22 over observed period since
Comments
Comment count reported by the source.
- Hacker News: 39, latest observation ; +37 over observed period since
- Lobsters: 8, latest observation ; +8 over observed period since
Aliases
| Source | External ID | URL |
|---|---|---|
| Hacker News | 50654773 | https://quin.fyi/posts/how-winhelp-files-work.html Read discussion |
| Lobsters | w4kxiz | https://quin.fyi/posts/how-winhelp-files-work.html Read discussion |