- WINAPI CALL Use this function to access the windows help engine, WINHELP.EXE BOOL WinHelp(HWND hWnd, LPSTR lpHelpFile, WORD wCommand, DWORD dwdata);
- hWnd the handle to the window making the call.
- lpHelpFile the filename of the helpfile. This file must have been created by the help compiler.
- wCommand tells WinHelp what type of action to take on the help file. It can have any of the following values:
HELP_CONTEXT Displays the context string in the help file specified by the integer value passed in dwData. This integer corresponds to a number defined in the help project's MAP section.
HELP_HELPONHELP Displays help on the help system.
HELP_INDEX Displays the help file's index. If more than one index is defined, then a new index must first be set with a HELP_SETINDEX call.
HELP_KEY Displays the help file on a keyword passed as a string in the dwData parameter.
HELP_MULTIKEY Displays help on a keyword defined in an alternate table. The MULTIKEY option must be set in the project file and dwData must contain a pointer to a MULTIHELP structured defined in windows.h.
HELP_QUIT Terminates this application's use of the help system.
HELP_SETINDEX Sets a new index in a help file containing multiple indices. The new index is based on a context string define in the project file MAP section whose number is passed in dwData.
- dwData is the DWORD value passed and depends on the value of the wCommand.