I need to implement help to my VB6 project using a chm file.

have implemented the help and able to preview a content and index based help but don't know how to open the search page of the help file.

Here is the code which i am using

VB Code:
  1. Private Declare Function HtmlHelp Lib "HHCtrl.ocx" Alias "HtmlHelpA" _
  2.     (ByVal hWndCaller As Long, _
  3.      ByVal pszFile As String, _
  4.      ByVal uCommand As Long, _
  5.      dwData As Any) As Long
  6.  
  7. Private Sub Contents_Click()
  8. HtmlHelp hWnd, "help.chm", HH_HELP_CONTEXT, ByVal 100&
  9. End Sub
  10.  
  11. Private Sub Index_Click()
  12. HtmlHelp hWnd, "help.chm", HH_DISPLAY_TOPIC, ByVal "filesused.html"
  13. End Sub

Can some one help me with the search option also.One more problem i am facing with my help page is that if i click on content it shows me the contents page in the help file but next time when i click index,it again shows me the contents page only.

Thanks