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.

43 lines
1.0 KiB

  1. //////////////////////////////////////////////////////////////////////////
  2. //
  3. //
  4. // Module.cpp - Implementation of CHtmlHelpModule
  5. //
  6. //
  7. // Get the precompiled header file.
  8. #include "header.h"
  9. // Get out header file.
  10. #include "module.h"
  11. //////////////////////////////////////////////////////////////////////////
  12. //
  13. // CHtmlHelpModule
  14. //
  15. //////////////////////////////////////////////////////////////////////////
  16. //
  17. // Operations
  18. //
  19. //////////////////////////////////////////////////////////////////////////
  20. //
  21. // Load the satellite dll.
  22. //
  23. void
  24. CHtmlHelpModule::LoadSatellite()
  25. {
  26. // We do not allow reloading the satellite. Once loaded we are done.
  27. ASSERT(m_bResourcesInitialized == false) ;
  28. // CLanguage is in charge of loading the correct satellite.
  29. HINSTANCE hInst = m_Language.LoadSatellite() ;
  30. if (hInst)
  31. {
  32. m_hInstResource = hInst ; // If its null, we didn't load a satellite. We are using the English resources.
  33. }
  34. // We've been initialized.
  35. m_bResourcesInitialized = true ;
  36. }