3

I just compiled and viewed a CHM file used in my project. I noticed that the viewer remembers the window size and position across sessions.

Where does the HTML help viewer save the window position for each CHM file?

1 Answer 1

7

These settings are stored in a file called HH.DAT. On Windows XP, this file can be found in:

C:\Documents and Settings\%username%\Application Data\Microsoft\HTML Help\hh.dat

Other OS versions put it in different places. There is one such file per user profile. On Windows 10 this file can be found in:

C:\Users\%username%\AppData\Roaming\Microsoft\HTML Help\hh.dat

Looking at the contents of the file, there seems to be a header, a list of help file names, some blank space to accommodate more file names, then some binary values that would most likely be the window size and position. If you're comfortable working with binary file formats, then with some experimentation it should be possible to work out the structure and extract the values for a given CHM file.

Here are some websites that talk about this file:

1
  • 1
    You're welcome. But I guess the technology of CHM help files is running out. Bad news - Microsoft dropped the download for the HTML Help Workshop and therefore also for the compiler last month. Among other things, I think it prepares for the final elimination of Internet Explorer, which is still present in the background in Windows 10. Who still has the htmlhelp.exe SetUp should take good care of it or use the Internet Archives. I am now a retired developer ... Feb 11, 2021 at 14:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.