Because nobody is interested in better help in Sublime ;P so may I have a request for additional information available on API level:[list=][*] HWND - Sublime main window handle. This param is required to be passed to HtmlHelp function.[*] ProcessId - Sublime process handle. Can be useful in the future [/list]

Done Desktop handle was used instead of Sublime foreground window because of problems when WinHelp popup window is displayed.This is only a draft whole functionality, however it is quite useful.Example for Python help:

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