Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

58 lines
1.5 KiB

  1. /*----------------------------------------------------------------------------
  2. hhwrap.c
  3. Implements the HtmlHelp wrapper for PBA in the function CallHtmlHelp.
  4. This function calls HTMLHelp with the parameters passed
  5. Copyright (c) 1998 Microsoft Corporation
  6. All rights reserved.
  7. Authors:
  8. billbur William Burton
  9. History:
  10. ??/??/98 billbur Created
  11. 09/02/99 quintinb Created Header
  12. --------------------------------------------------------------------------*/
  13. #include <windows.h>
  14. #include "hhwrap.h"
  15. #include "htmlhelp.h"
  16. BOOL WINAPI DllMain(HINSTANCE hDLLInst, DWORD fdwReason, LPVOID lpvReserved)
  17. {
  18. return TRUE;
  19. }
  20. //
  21. // FUNCTION: CallHtmlHelp(HWND hWnd, LPSTR lpszFile, UINT uCommand, DWORD dwData)
  22. //
  23. // PURPOSE:
  24. // Calls HTMLHelp with the parameters passed.
  25. //
  26. // PARAMETERS:
  27. // hWnd - Handle of the calling window
  28. // lpszFile - Character string containing the name of the help module
  29. // uCommand - Specifies the action to perform
  30. // dwData - Specifies any data that may be required based on the value of the uCommand parameter
  31. //
  32. //
  33. // RETURN VALUE:
  34. // TRUE if the call was successful
  35. // FALSE if the call failed
  36. //
  37. BOOL WINAPI CallHtmlHelp(HWND hWnd, LPSTR lpszFile, UINT uCommand, DWORD dwData)
  38. {
  39. HWND hwndHtmlHelp;
  40. hwndHtmlHelp = HtmlHelp(hWnd, lpszFile, uCommand, dwData);
  41. if (0 == hwndHtmlHelp)
  42. {
  43. return FALSE;
  44. }
  45. return TRUE;
  46. }