Source code of Windows XP (NT5)
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.

97 lines
1.5 KiB

  1. /*++
  2. Copyright (c) 1996 Microsoft Corporation
  3. Module Name:
  4. faxhelp.cpp
  5. Abstract:
  6. This file contains my implementation of ISnapinHelp.
  7. Environment:
  8. WIN32 User Mode
  9. Author:
  10. Andrew Ritz (andrewr) 30-Sept-1997
  11. --*/
  12. #include "stdafx.h"
  13. #include "faxsnapin.h"
  14. #include "faxpersist.h"
  15. #include "faxadmin.h"
  16. #include "faxcomp.h"
  17. #include "faxcompd.h"
  18. #include "faxdataobj.h"
  19. #include "faxhelper.h"
  20. #include "faxstrt.h"
  21. #include "adminhlp.h"
  22. #include "faxshelp.h"
  23. #include "iroot.h"
  24. #pragma hdrstop
  25. HRESULT
  26. STDMETHODCALLTYPE
  27. CFaxSnapinHelp::GetHelpTopic(
  28. LPOLESTR* lpCompiledHelpFile
  29. )
  30. /*++
  31. Routine Description:
  32. This routine returns the CLSID of the snapin.
  33. Arguments:
  34. pClassID - returns the class id
  35. Return Value:
  36. HRESULT indicating SUCCEEDED() or FAILED()
  37. --*/
  38. {
  39. WCHAR Path[MAX_PATH];
  40. DebugPrint(( TEXT("Trace: CFaxSnapinHelp::GetHelpTopic") ));
  41. assert( lpCompiledHelpFile != NULL );
  42. ExpandEnvironmentStrings(FAXMMC_HTMLHELP_FILENAME,Path,sizeof(Path)/sizeof(WCHAR));
  43. *lpCompiledHelpFile = SysAllocString( Path );
  44. return S_OK;
  45. }
  46. HRESULT
  47. STDMETHODCALLTYPE
  48. CFaxSnapinTopic::ShowTopic(
  49. LPOLESTR pszHelpTopic
  50. )
  51. /*++
  52. Routine Description:
  53. This routine returns the CLSID of the snapin.
  54. Arguments:
  55. pClassID - returns the class id
  56. Return Value:
  57. HRESULT indicating SUCCEEDED() or FAILED()
  58. --*/
  59. {
  60. DebugPrint(( TEXT("Trace: CFaxSnapinTopic::ShowTopic") ));
  61. pszHelpTopic = SysAllocString( FAXMMC_HTMLHELP_TOPIC );
  62. return S_OK;
  63. }