Microsoft KB Archive/64050

{|
 * width="100%"|

Use Uppercase &quot;K&quot; for Keywords in Windows Help Files

 * }

Q64050

-

The information in this article applies to:


 * Microsoft Windows Software Development Kit (SDK) versions 3.0, 3.1
 * Microsoft Win32 Software Development Kit (SDK), versions 3.5, 3.51, 4.0

-

SUMMARY
The standard keyword list must be defined by using capital &quot;K&quot; footnotes. Lowercase &quot;k&quot; footnotes may not be used for defining either standard or alternate keyword lists.

MORE INFORMATION
Using lowercase &quot;k&quot; footnotes can result in problems such as the following:

If your application calls WinHelp using the HELP_KEY option for doing a keyword search and you pass a LPSTR to a keyword defined in a footnote attached to your topic, the Help system displays an &quot;Invalid key word&quot; error message box. For example

WinHelp(hWnd,cFileDir,HELP_KEY,(DWORD)(LPSTR)&quot;help&quot;);

where

  hWnd     is the handle of the calling window. cFileDir is the directory path and filename of the .HLP file. &quot;help&quot;  is the keyword defined in the footnote section of the topic.

and the footnote section of the topic is as follows:

  k sample;help

Modifying the footnote for the topic to use an uppercase &quot;K&quot; solves the problem.

  K sample;help Additional query words: 3.00 3.10 3.50 4.00 95 key word win16sdk

Keywords :

Issue type :

Technology : kbWin32SDKSearch kbAudDeveloper kbWin3xSearch kbSDKSearch kbWin32sSearch kbWin32SDK400 kbWin32SDK350 kbWin32SDK351 kbWinSDKSearch kbWinSDK300 kbWinSDK310