Starting Windows Help

The following example uses the WinHelp function to start the Windows Help application and open the Windows NT Help file to its Contents topic.

HWND hwnd; // main window handle

BOOL bResult // for checking boolean function result

bResult = WinHelp(hWnd, "WINNT.HLP", HELP_CONTENTS, 0L);

This next example opens the Windows NT user Help file, searches the file for the topic associated with a keyword string, and then displays the topic.

HWND hwnd; // main window handle

BOOL bResult // for checking boolean function result

bResult = WinHelp(hWnd, "WINNT.HLP", HELP_KEY,

(DWORD) "finding topics");