WinHelp files are a whole file system hidden inside a single .hlp

How WinHelp Files Work

Microsoft never documented the WinHelp format, so the author reverse-engineered it from Manfred Winterhoff's notes and real files to build libhlp, a pure-Rust reader. A .hlp is an archive with a B+ tree directory, LZ77-compressed topic blocks, a phrase-substitution layer, and links stored as hashes of topic names rather than positions. The write-up covers the format's quirks, including a one-bit bug in phrase-length decoding, and notes that WinHelp 3.0 and Borland's .hlp files are effectively separate formats.

I had my wisdom teeth out on a Friday morning, spent the rest of that day completely out of it, and then woke up Saturday and did this instead of resting like a normal person.
  1. publlus_enigma

    Help files were one of the best aspects of earlier versions of Windows: having consistent, readily accessible offline help across applications helped to learn software quickly.

    In general today I miss having high quality documentation for software.

  2. dcrazy

    The official WinHelp authoring tool was… WordPad. Or really, any RTF editor that supported the custom footnote glyphs that the WinHelp compiler turned into a .hlp file. But I would’ve been nervous about using WinWord in case of unwanted additional formatting.

    For some reason this baffled me at the time, even though it’s really no different from DocBook to HTML conversion. Maybe it was inexperience, or maybe it was because HTML was its own well-known thing while .hlp was opaque, but I always thought that the footnotes etc. were semantically preserved to the final artifact, and I couldn’t wrap my head around how they became popups and hyperlinks.

    Later, Compiled HTML Help arrived which was significantly less mysterious. Maybe because the input and output were still obviously HTML, packaged into a .chm with some metadata. Or maybe I’d just learned more.

  3. JdeBP

    The hyperlinked text file doco is based upon Pete Davis's 1993 articles in Schulman's "Undocumented Corner" in Dr Dobb's Journal. (https://dl.acm.org/doi/10.5555/178300.178317)

    Pete Davis actually expanded and corrected those articles, and they are chapter 4 of xyr book, co-authored with Mike Wallace, Windows Undocumented File Formats, published by Taylor & Francis in 1997.

    Unlike the txt file and the original DDJ articles, the book has diagrams. (-:

  4. jjordan

    Reminds me of way back in 2000 when I was writing my first commercial application in very bad VB6 code, I really wanted to add contextual help to my app, so I purchased a program called dotHLP which provided a nice (if buggy) GUI for creating and editing your own .HLP file. It was great.

    Just looked up the dev. It was Gary Handley, the director of Auric Visions Ltd. who first got started all the way back in 1995. They eventually sold to EC Software, the creator of Help & Manual.

  5. enneff

    Kinda sad how there used to be a central way that programs would document themselves, but it’s not at all the case today.

More from this day

2026-11-28