tgkeul wrote:artee, I tried your code and it works file - almost. When I close the help window sublime 20091017 aborts with a memory error ( could not read at 00000x0 or so).
This is a good question to Jon why Sublime crashed

Do you changed above code? Maybe path is passed in invalid format to HTML control? In Windows we have two situations when we wanted to using strings: MBCS or Unicode coding. Depending on that type wa have to call different methods - with 'W' or 'A' appendix, in this case HTMLHelpW or HTMLHelpA respectively.
I've tested it on XP and Vista Pro and Bussines (with 20091010 and 20091017) and works fine but...
HTMLHelp control is half-baked and I've noticed several problems when improper window handle is used, e.g. instead of GetDesktopWindow -
GetForegroundWindow will be used it causes deadlock when HTMLHelp topic search modal dialog is displayed.
This is why I wanted to HTMLHelp related functionality should be implemented inside Sublime...
There are no problems with types marshaling or calling additional functionality using ctypes.
Only simple API call with typical return code

Regards,
Artur