HH_INITIALIZE

Initializes the help system for use in the application thread.

Argument Description
hwndCaller Ignored
pszFile Must be nil
uCommand HH_INITIALIZE
dwData On return contains a cookie value to be used with HH_UNITINITALIZE

Description:
The HH_INITIALIZE command initializes the help system for use an dmust be the first HTML Help command the application calls. The command configures HTML Help to run on the same thread as the application instead of a secondary thread. This requires that the applications sends messages to HTML Help using the HH_PRETRANSLATEMESSAGE command. When the command returns the dwData parameter contains a cookie value which you must pass to the HH_UNINITIALIZE command when your application no longer uses HTML Help.

Example:

var
  Cookie: DWORD;
begin
  HtmlHelp(0, nil, HH_INITIALIZE, DWORD(@Cookie));
end;

Notes:
HH_INITIALIZE must be the very first and HH_UNINITIALIZE the very last command an application issues to HTML Help.

See Also:
HH_PRETRANSLATEMESSAGE
HH_UNINITIALIZE